Example usage for java.time ZoneOffset toString

List of usage examples for java.time ZoneOffset toString

Introduction

In this page you can find the example usage for java.time ZoneOffset toString.

Prototype

@Override
public String toString() 

Source Link

Document

Outputs this offset as a String , using the normalized ID.

Usage

From source file:Main.java

public static void main(String[] args) {
    ZoneOffset z = ZoneOffset.UTC;
    System.out.println(z.toString());
}