~/talk

Polars and time zones: everything you need to know

Talkat PyData Global 2023 · 2023-12-06..12-08· [databases]
slides:none on file

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

  1. 0:00Manual time zone handling fails
  2. 7:30Polars date time crash course
  3. 14:55Polars time zone functions
  4. 19:56UTC conversion pitfalls
  5. 21:20Reading time zone CSV
  6. 23:30Key takeaways
  7. 24:12Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.