Java Date Time Java Java API
java.time.ZonedDateTime
public ZoneId getZone()
package com.logicbig.example.zoneddatetime;import java.time.ZoneId;import java.time.ZonedDateTime;public class GetZoneExample { public static void main(String... args) { ZonedDateTime d = ZonedDateTime.now(); ZoneId zone = d.getZone(); System.out.println(zone); }}
America/Chicago