Using std::chrono Calendar Dates for Finance in Cpp
summary
C++20’s calendar types are usable for real finance work: the talk shows using std::chrono year_month_day and year_month_day_last plus systime conversions to produce a serial integer date, implements Actual/365 and 30/360 year‑fractions, and builds a small date wrapper that handles adding months (avoids the Dec 30 +2 months → Feb 30 bug), a modified forward roll for weekends, and schedule generation with business‑day adjustments. Code compiles and runs; performance notes favor avoiding frequent year_month_day_last construction.
AI-written summary · about
chapters (4)
related talks
55mCalendrical C++: std::chrono, History, Mathematics and the Computus
56mImplementing Fast Calendar Algorithms: Speeding Date
03m<chrono> Then and Now
59m“A C++14 approach to dates and times"
01h 25mC++23 Ranges: Conceptual Changes and Useful Practicalities
59mC++20 - My Favourite Code Examples
01h 21mHow Old Am I in Seconds? Insights From the C++ chrono Library
01h 00mThe C++20 Standard Library: Beyond Ranges
