~/talk

“A C++14 approach to dates and times"

Talkat CppCon 2015 · 2015-09-21..09-25· [web-platform, c-and-cpp]
slides:none on file

A compact C++14 date/time library (date.h, plus optional tz.h) implements single-header extensions to std::chrono: a serial daypoint time_point, lightweight field types (year/month/day, year/month/weekday, last), and constexpr algorithms so many conversions and epoch math happen at compile time. It allows constructing invalid dates and deferring handling (checkable with ok()), parses the IANA tz database including leap seconds, throws no exceptions, and beats heavy implementations in size and cold-cache speed (library object ≈15KB; competitor full app ≈132KB; hot/cold timings in the 100–300ns vs 89ns/3µs ranges).

AI-written summary · about

  1. 0:00Introduction
  2. 1:06Library Overview
  3. 3:07Date Algorithms
  4. 5:15Type Safe Objects
  5. 6:52Cute API Syntax
  6. 9:05Year Month Day Struct
  7. 12:27Handling Invalid Dates
  8. 16:56Last Day and Weekday
  9. 20:22Daypoint and Arithmetic
  10. 24:37DateTime Operations
  11. 29:09Performance Analysis
  12. 33:56Runtime Benchmarking
  13. 45:43Calendar Arithmetic
  14. 48:48Time Zone Library
  15. 51:45Summary and Questions
~/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.