Example usage for java.time ZoneOffset UTC

List of usage examples for java.time ZoneOffset UTC

Introduction

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

Prototype

ZoneOffset UTC

To view the source code for java.time ZoneOffset UTC.

Click Source Link

Document

The time-zone offset for UTC, with an ID of 'Z'.

Usage

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

public static void main(String[] args) {
    System.out.println("ZoneOffset.UTC: " + ZoneOffset.UTC);
    System.out.println("ZoneOffset.MIN: " + ZoneOffset.MIN);
    System.out.println("ZoneOffset.MAX: " + ZoneOffset.MAX);

}

From source file:Main.java

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

From source file:Main.java

public static void main(String[] args) {
    ZoneOffset z = ZoneOffset.UTC;
    boolean t = z.isSupported(ChronoField.OFFSET_SECONDS);
    System.out.println(t);//from   ww w .  j  a  va  2s .c o m
}