A Matter of Time
summary
Every so often a minute lasts 61-second minute and that breaks naive code; libraries and examples show concrete failures: Python small-int caching (only -5 to 256), nonexistent local times (2:30am on spring‑ahead) and duplicated times (1:30am on fall‑back). Practical fixes include using IANA tzdb, server‑side UTC storage (store UTC) and picking the right semantics for duration vs period. Tooling mentioned: Java 8, JodaTime, pytz, moment.js; tzdb maps historical offsets and generally works but requires accurate, versioned data.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 4:25Time is Hard
- 6:46Periods
- 12:38Intervals
- 16:19The Problem
- 18:18The Solution
- 21:23Not Real Times
- 23:03Time Zones
- 28:33Operations on Time
- 30:08Duration vs Period
- 36:48Conclusion








