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:30

Related terms

Taught in

References

Certification courses