List of usage examples for java.time Clock getZone
public abstract ZoneId getZone();
From source file:Main.java
public static void main(String[] args) { Clock clock = Clock.systemUTC(); System.out.println(clock.getZone()); clock.withZone(ZoneId.systemDefault()); System.out.println(clock.getZone()); }
From source file:Main.java
public static void main(String[] args) { Clock clock = Clock.systemDefaultZone(); System.out.println(clock.getZone()); }