Polars and time zones: everything you need to know
summary
Claim: never handle time zones manually; use Polars and let it do the hard work. Shows concrete tools: dt.offset_by(4H) to add four hours and get 00:00 → 05:00 across DST, replace_time_zone versus convert_time_zone for local vs equivalent instants, and the difference between 1d (calendar day) and 24h (fixed duration). Demonstrates CSV parsing with try_parse_dates and warns that offset‑aware strings normalize to UTC unless a local zone is set.
AI-written summary · about
chapters (7)
- 0:00Manual time zone handling fails
- 7:30Polars date time crash course
- 14:55Polars time zone functions
- 19:56UTC conversion pitfalls
- 21:20Reading time zone CSV
- 23:30Key takeaways
- 24:12Q&A
related talks
43mTime is an illusion (lunchtime doubly so)
42mWorking with Dates and Times (It's Possible!)
01h 05mWorking with Time is Easy
38mA Matter of Time
44mDates and Times on the Horizon? Run… or Come Learn All the Traps That...
38mUTC is Enough for Everybody, Right?
48mWorking with date and time data in .NET
10mtzdata: Back to the Future!
