How old am I in Seconds and other insights from the C++ chrono library
Nicolai M. Josuttis
16:00-17:30, Wednesday, 2nd April 2025
The C++ chrono library has to solve a suprising number of real-world issues. For example:
- How many seconds has a year?
- Is February 29 a valid day?
- What is right format to specify and print a date?
- How to invite to a video call between people in Chicago, Cuba, and China?
Introduced in two steps (basics with C++11 and several extensions in C++20), the chrono library now has approaches to deal with these question in a flexible, powerful, safe, and efficient way.
In this talk we will look at durations, time zones, date formats, calendars, clocks, weekdays, leap years, leap seconds, and how to deal with them right using the C++ standard chrono library.
I promise surpises both about the real world as well as the design and use of this library.
Nicolai M. Josuttis
Nicolai Josuttis (www.josuttis.com) is well-known in the community for his authoritative books and talks. For more than 20 years he has been a member of the C++ Standard Committee. He is the author of several worldwide best-sellers, including:
- C++20: The Complete Guide
- C++17: The Complete Guide
- C++ Move Semantics: The Complete Guide
- The C++ Standard Library: A Tutorial and Reference
- C++ Templates: The Complete Guide (w/ David Vandevoorde & Doug Gregor)