daylight saving time
Moving the clocks of a time zone forward in spring and back in autumn, which creates a gap and an overlap in local time.
In more detail
In the spring gap some local times never happen, and ZonedDateTime moves such a time forward by the length of the gap. In the autumn overlap some local times happen twice, and the earlier offset is kept by default. A day can therefore last 23 or 25 hours.
Example
ZonedDateTime.of(2026, 3, 8, 2, 30, 0, 0, ZoneId.of("America/New_York")) // 03:30Related terms
- UTC — Coordinated Universal Time, the worldwide reference time that does not change with seasons or time zones.
Taught in
- Strings, StringBuilder And Text Blocks — Oracle Certified Professional: Java SE 21 Developer (1Z0-830) Exam Prep
- Dates, Times And Daylight Saving — Oracle Certified Professional: Java SE 21 Developer (1Z0-830) Exam Prep
- Paths And Files With NIO.2 — Oracle Certified Professional: Java SE 21 Developer (1Z0-830) Exam Prep