Time Is Money... and Bugs
summary
This talk examines why code handling dates, times, datetimes, timedeltas and timezones produces so many bugs by showing concrete examples from the presenter’s experience. It analyzes both technical causes (flawed or poorly designed libraries and tools) and human causes (ambiguous or repeated design choices), using code samples and metaphors to explain how to detect, avoid and fix time-related bugs.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 0:42Time bugs in real-world systems
- 1:23Daylight saving time bugs
- 2:47Non-uniqueness of time
- 3:49Non-continuity of time
- 4:30Global time rules variations
- 5:12Time rules change over time
- 5:54Handling time differences in code
- 6:35Monotonic clocks solution
- 7:36Sunlight and calendar complexity
- 8:59Natural periodicities and seasons
- 9:59Solar vs civil time
- 10:41Tropical vs sidereal years
- 11:23Easter date calculation
- 12:26Leap year rules complexity
- 13:29Calendar diversity
- 13:50Gregorian calendar limitations
- 14:11Alternative calendar proposals
