std::chrono::clock_cast

Header: <chrono>

Converts the time point t of a clock Source to an equivalent time point of the clock Dest, using std::chrono::system_clock and/or std::chrono::utc_clock as intermediaries if necessary.

# Declarations

template< class Dest, class Source, class Duration >
auto clock_cast( const std::chrono::time_point<Source, Duration>& t );

(since C++20)

# Return value

The result of the conversion, determined as described above.

# Example

This section is incompleteReason: no example

# See also