Welcome To The Time Zone
summary
A C++ library built on <chrono> (header tzh with companion date library on GitHub) parses the full IANA tzdb and exposes every rule, lets code iterate all ~300 zones, and narrows an ambiguous abbreviation to six candidates in the demo. It is type-safe, distinguishes civil vs. absolute time, supports custom calendars and sub-second precision, and adds a UTC clock so conversions are leap-second aware. Initial DB load costs milliseconds then operations cost microseconds; database size ≈800KB.
AI-written summary · about
chapters (18)
- 0:00Introduction to time zones
- 1:26Library philosophy and data
- 3:13Type safety in the library
- 5:21Five primary concepts
- 6:23Calendar types overview
- 8:09CIS time and local time
- 9:52Time zone concept
- 10:56Zone time explained
- 12:19Creating Zone time from CIS time
- 13:46Alternative calendar compatibility
- 15:55Time zone conversion example
- 17:19Formatting time with the library
- 22:18Parsing time stamps
- 27:38Arithmetic in local and UTC time
- 31:32Ambiguous time zone abbreviations
- 39:25Computing with leap seconds
- 46:11Library summary and features
- 47:17Q&A session
related talks
59m“A C++14 approach to dates and times"
31mA Crash Course in Calendars, Dates, Time, and Time Zones
58mC++20’s <chrono> Calendars and Time Zones in MSVC
38mUTC is Enough for Everybody, Right?
59mTime Programming Fundamentals
30mWorking with Time Zones: Everything You Wish You Didn't Need to Know
01h 21mHow Old Am I in Seconds? Insights From the C++ chrono Library
35mMastering date/time handling with Elixir
