std::chrono::file_clock::to_utc,std::chrono::file_clock::from_utc (3) - Linux Manuals
std::chrono::file_clock::to_utc,std::chrono::file_clock::from_utc: std::chrono::file_clock::to_utc,std::chrono::file_clock::from_utc
NAME
std::chrono::file_clock::to_utc,std::chrono::file_clock::from_utc - std::chrono::file_clock::to_utc,std::chrono::file_clock::from_utc
Synopsis
template <class Duration> (since C++20)
static std::chrono::utc_time</*see below*/> (1) (optional)
to_utc(const std::chrono::file_time<Duration>& t);
template <class Duration> (since C++20)
static std::chrono::file_time</*see below*/> (2) (optional)
from_utc(const std::chrono::utc_time<Duration>& t);
1) Converts the file_time t to a utc_time representing the same point in time.
2) Converts the utc_time t to a file_time representing the same point in time.
The duration of the return type is computed from Duration in an unspecified manner.
These function templates are optional: an implementation may choose to instead provide to_sys and from_sys.
Return value
1) A utc_time representing the same point in time as the argument.
2) A file_time representing the same point in time as the argument.
Notes
User code should usually use std::chrono::clock_cast, which provides a generic interface to convert time points between clocks, rather than call these functions directly.
See also
to_sys converts between file_time and sys_time
from_sys (public static member function)
[static] (optional)
clock_cast convert time points of one clock to another
(C++20)