Convert an instance of time_point to time_t.
time_t to_time_t(time_point const& t) noexcept;
- Returns:
A
time_tvalue that represents the same point in time asttruncated to seconds precision.- Throws:
An exception of type
std::system_errorif an error occurs.
Header
#include <chrono>
See Also
std::chrono::system_clockclassstd::chrono::system_clockmemberstime_pointtypedefstd::chrono::system_clock::to_time_point()