How Old Am I in Seconds and Other insights from the C++ chrono Library

By Nicolai M. Josuttis

The C++ chrono library has to solve a surprising 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 surprises both about the real world as well as the design and use of this library.





Your Privacy

By clicking "Accept Non-Essential Cookies" you agree ACCU can store non-essential cookies on your device and disclose information in accordance with our Privacy Policy and Cookie Policy.

Current Setting: Non-Essential Cookies REJECTED


By clicking "Include Third Party Content" you agree ACCU can forward your IP address to third-party sites (such as YouTube) to enhance the information presented on this site, and that third-party sites may store cookies on your device.

Current Setting: Third Party Content EXCLUDED



Settings can be changed at any time from the Cookie Policy page.