...

/

From Time Point to Calendar Time

From Time Point to Calendar Time

This lesson gives a brief introduction to calendar time and its usage in C++ with the help of interactive examples.

We'll cover the following...

Thanks to std::chrono::system_clock::to_time_t, you can convert a time point that internally uses std::chrono::system_clock to an object of type std::time_t. Further conversion of the std::time_t object with the function std::gmtime gives you the calendar time, expressed in ...