~/talk

Design Rationale for the chrono Library

Talkat Meeting C++ 2019 · 2019-11-14..11-16· [rust]
slides:none on file

Lays out concrete design choices: templates for duration(rep and period), implicit lossless conversions and duration_cast for truncation to force safe rounding, and why time_point arithmetic forbids nonsense at compile time. Describes C++11 building blocks and C++20 additions—days weeks months years plus calendrical types like year_month_day and month_day_last—integrated with IANA time zone database and a zone_time pairing that handles DST. Demonstrates a working program that prints biweekly London 18:00 meetings and correct New York times across DST.

AI-written summary · about

  1. 0:00Introduction
  2. 0:51What is chrono
  3. 1:34Time point
  4. 2:59Streaming operator
  5. 4:08Duration
  6. 5:20Convenience Types
  7. 5:42Custom Unit Types
  8. 7:11Conversions
  9. 10:34Timepoints
  10. 11:07Logic Errors
  11. 12:23Time Points
  12. 13:20Time Points vs Dates
  13. 17:00What is a Calendar
  14. 19:52YearMonthDay
  15. 24:13Year
  16. 25:22Month
  17. 26:38Day
  18. 26:58MonthDay
  19. 30:09Typesafe
  20. 32:22Invalid Dates
  21. 35:36MonthDayLast
  22. 37:04YearMonthLast
  23. 40:41MonthWeekDay
  24. 43:45weekday
  25. 46:46weekday indexed
  26. 48:19month year
  27. 50:23time zones
  28. 52:48examples
  29. 56:45zonetime
~/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.