C++ Time Points
Time points, duration and literals.
Code to get the current time.
The time_point
is a class template, using a clock and a duration.
The system_clock
we are using is based on the operating system's time.
Creating a specific date :
auto my_custom_date = std::chrono::year_month_day(std::chrono::year(2025), std::chrono::month(01), std::chrono::day(23));
Creating a time point