std::chrono::utc_clock::from_sys

Converts a sys_time t to a utc_time u that represents the same point in time.

# Declarations

template< class Duration >
static std::chrono::utc_time<std::common_type_t<Duration, std::chrono::seconds>>
from_sys( const std::chrono::sys_time<Duration>& t );

(since C++20)

# Return value

A utc_time representing the same point in time as t.

# See also