Documentation Home >> Headers >> <chrono> Header >> std::chrono::system_clock >> std::chrono::system_clock::to_time_point Static Member Function

Convert an instance of time_t to time_point.

[Note] Note

This function is provided for backwards compatibility only; new programs should use std::chrono::system_clock::from_time_t() instead.

time_point to_time_point(time_t const& t) noexcept;

Returns:

std::chrono::system_clock::from_time_t(t)

Header

#include <chrono>

See Also