Working with Time Zones: Everything You Wish You Didn't Need to Know
summary
Python now ships a concrete time zone implementation called zoneinfo that uses the IANA database and a pip fallback package called tzdata; it handles ambiguous and imaginary times via the fold attribute (PEP 495) and exposes different equality/arithmetic semantics that can produce non‑transitive equality among datetimes. The talk demonstrates where naive UTC storage breaks, shows surprising historical skips and repeats, compares pytz ergonomics, and supplies migration shims and practical rules that actually work in tests.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 0:58Basics
- 6:33Why work with time zones
- 9:06Time zone abstractions
- 11:43Time zone types
- 16:18Fold
- 17:56Local Time
- 20:39Bring Your Own Data
- 21:44Python Time Zones
- 25:22ZoneInfo
- 25:50Walltime semantics
- 26:43Absolute time semantics
- 28:46PiTZ Deprecation
related talks
28mTime Zones in Python: Everything You Wish You Didn't Need
26mHandling Timezones in Python
41mimport time_travel: A Primer on Timezones in Python
18mManaging Time like a Time Lord: It's bigger on the inside
45mEverything You Never Wanted to Know About Time Zones
09mA Day Has Only 24±1 Hours
01h 05mWelcome To The Time Zone
38mA Matter of Time
