List of usage examples for java.time ZoneOffset UTC
ZoneOffset UTC
To view the source code for java.time ZoneOffset UTC.
Click Source Link
From source file:Main.java
public static void main(String[] args) { ZoneOffset z = ZoneOffset.UTC; int t = z.get(ChronoField.OFFSET_SECONDS); System.out.println(t);/* w ww . java2 s .co m*/ }
From source file:Main.java
public static void main(String[] args) { ZoneOffset z = ZoneOffset.UTC; long t = z.getLong(ChronoField.OFFSET_SECONDS); System.out.println(t);//from ww w . ja v a 2 s . co m }
From source file:Main.java
public static void main(String[] args) { ZoneId z = ZoneId.ofOffset("UTC", ZoneOffset.UTC); System.out.println(z); }
From source file:Main.java
public static void main(String[] args) { OffsetTime m = OffsetTime.of(12, 12, 123, 1233, ZoneOffset.UTC); System.out.println(m); }
From source file:Main.java
public static void main(String[] args) { ZoneOffset z = ZoneOffset.UTC; Temporal t = z.adjustInto(ZonedDateTime.now()); System.out.println(t);/*from w w w . j av a 2 s . c om*/ }
From source file:Main.java
public static void main(String[] args) { ZoneOffset z = ZoneOffset.UTC; ValueRange t = z.range(ChronoField.OFFSET_SECONDS); System.out.println(t);// w ww . j a v a 2 s . com }
From source file:Main.java
public static void main(String[] args) { ZoneOffset z = ZoneOffset.UTC; Chronology t = z.query(TemporalQueries.chronology()); System.out.println(t);/* w w w . jav a2 s. c o m*/ }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.of(2014, 1, 14, 12, 23, 23, 1234, ZoneOffset.UTC); System.out.println(o);//from ww w . jav a 2 s. c om }
From source file:Main.java
public static void main(String[] args) { System.out.println(fromLocalDateIn(LocalDate.now(), ZoneOffset.UTC)); }
From source file:Main.java
public static void main(String[] args) { OffsetTime m = OffsetTime.of(LocalTime.now(), ZoneOffset.UTC); System.out.println(m); }