List of usage examples for java.time ZoneId systemDefault
public static ZoneId systemDefault()
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(ZoneId.systemDefault()); System.out.println(o); }
From source file:Main.java
public static void main(String[] args) { ZoneId z = ZoneId.systemDefault(); System.out.println(z.getDisplayName(TextStyle.FULL, Locale.CANADA)); }
From source file:Main.java
public static void main(String[] args) { Clock clock = Clock.tickMinutes(ZoneId.systemDefault()); Duration duration = Duration.ofHours(3); Clock newClock = Clock.tick(clock, duration); System.out.println(newClock.instant()); }
From source file:Main.java
public static void main(String[] args) { System.out.println(asLocalDateIn(new Date(), ZoneId.systemDefault())); }
From source file:Main.java
public static void main(String[] args) { ZonedDateTime z = ZonedDateTime.of(2014, 9, 3, 12, 12, 123, 1234, ZoneId.systemDefault()); System.out.println(z);/*from w w w . ja v a2 s .c om*/ }
From source file:Main.java
public static void main(String[] args) { OffsetTime m = OffsetTime.ofInstant(Instant.now(), ZoneId.systemDefault()); System.out.println(m);// www . ja v a 2 s .c o m }
From source file:Main.java
public static void main(String[] args) { LocalDate a = LocalDate.of(2014, 6, 30); System.out.println(a.atStartOfDay(ZoneId.systemDefault())); }
From source file:Main.java
public static void main(String[] args) { ZonedDateTime myZonedDateTime = ZonedDateTime.of(2014, 1, 31, 11, 20, 30, 93020122, ZoneId.systemDefault()); System.out.println(myZonedDateTime); }
From source file:Main.java
public static void main(String[] args) { ZonedDateTime z = ZonedDateTime.ofInstant(Instant.now(), ZoneId.systemDefault()); System.out.println(z);/*from w w w.j av a 2 s . c o m*/ }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.ofInstant(Instant.now(), ZoneId.systemDefault()); System.out.println(o);/*w w w . ja va2 s . c om*/ }