Convert an instance of time_t
to time_point.
time_point from_time_t(time_t const& t) noexcept;
- Returns:
A
time_pointvalue that represents the same point in time ast.- 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_t()