ZonedDateTime
ZonedDateTime is a date-time class in the Java platform, part of the java.time API. It represents a date and time together with a time zone, combining a LocalDateTime with a ZoneId and the corresponding offset. It follows the ISO-8601 calendar system and is immutable and thread-safe, making it suitable for use in multi-threaded code and as a map key.
It can be created from a date and time with a zone, from a LocalDateTime and ZoneId,
ZonedDateTime exposes accessors for the date and time fields (year, month, day, hour, minute, second, nano) as
Arithmetic and comparison are defined: you can add or subtract years, months, days, hours, and so on,
DST and time-zone rules affect the interpretation of certain local times: some local times are skipped or
Common use cases include timestamping events across regions, scheduling calendar events, and displaying times in the