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

Convert an instance of time_t to time_point.

time_point from_time_t(time_t const& t) noexcept;

Returns:

A time_point value that represents the same point in time as t.

Throws:

An exception of type std::system_error if an error occurs.

Header

#include <chrono>

See Also