Returns the ZoneId of this Clock object.
package com.logicbig.example.clock;
import java.time.Clock;
public class GetZoneExample {
public static void main(String... args) {
Clock c = Clock.systemDefaultZone();
System.out.println(c);
}
}
Output
SystemClock[America/Chicago]