The time relativity principle
summary
Shows that converting an XML timestamp through XMLGregorianCalendar to Instant conversion plus a ZoneId produces an unexpected shift (example result becomes 744 minutes instead of 7:20) because epoch choices, historical DST changes and negative timestamps bite back. Demonstrates Java tools used: java.time, ZoneId, legacy Calendar API, and argues for a pragmatic alternative of storing seconds or minutes since midnight as a long for timetable entries. Builds a conversion pattern that reconstructs local times reliably and reduces bugs caused by timezone rule changes.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:28Example
- 1:43Bus timetables
- 6:03Calendar API
- 6:44Instant instant
- 9:26Time zone changes
- 11:23Conversions
- 12:17Timing information
- 14:04Conversion
- 14:35Takeaway
- 15:15Questions








