~/talk

A Crash Course in Calendars, Dates, Time, and Time Zones

Talkat CppCon 2021 · on Wednesday, 2021-10-27· at 09:35· online· [software-architecture]
links:none on file
slides:none on file

C++20 chrono features get practical exercises and gotchas not just names: compile time ratio arithmetic and the predefined SI aliases, how to build and convert durations with duration_cast and user literals, using system_clock and high_resolution_clock for timing, constructing dates like the 3rd Monday or last day and converting between field and serial representations, the surprising one‑year addition behavior that uses average years, and time zone work using zoned_time and the tz database via get_tzdb with examples that compile and show actual outputs.

AI-written summary · about

  1. 0:00Introduction
  2. 0:32Topics
  3. 1:23Rational Numbers
  4. 1:52Rational Numbers Compilation
  5. 5:17Durations
  6. 7:40Arithmetic
  7. 9:30Conversion
  8. 10:52Standard UserDefined literals
  9. 12:48Clocks
  10. 15:45Time Points
  11. 18:22Dates
  12. 21:28System Time
  13. 25:58Time Zones
  14. 27:54Questions
~/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.