import java.time.Instant; import java.time.ZoneId; import java.time.ZonedDateTime; public class Main { Instant now = Instant.now(); ZonedDateTime zdtUTC = now.atZone(ZoneId.of("Etc/UTC")); ZonedDateTime zdtNewYork = now.atZone(ZoneId.of("America/New_York")); } }