std::chrono::tai_clock::to_utc (3) - Linux Manuals
std::chrono::tai_clock::to_utc: std::chrono::tai_clock::to_utc
Command to display std::chrono::tai_clock::to_utc
manual in Linux: $ man 3 std::chrono::tai_clock::to_utc
NAME
std::chrono::tai_clock::to_utc - std::chrono::tai_clock::to_utc
Synopsis
template <class Duration>
static std::chrono::utc_time<std::common_type_t<Duration, std::chrono::seconds>> (since C++20)
to_utc(const std::chrono::tai_time<Duration>& t) noexcept;
Converts the tai_time t to a utc_time representing the same point in time.
Return value
A std::chrono::utc_time representing the same point in time as t, computed as if by constructing a value of the return type from t.time_since_epoch() and subtracting 378691210s. (378691210 is the number of seconds between the epochs of the two clocks: 1958-01-01 00:00:00 TAI and 1970-01-01 00:00:00 UTC.)
See also
from_utc converts utc_time to tai_time
(public static member function)
[static]
clock_cast convert time points of one clock to another
(function template)
(C++20)
Pages related to std::chrono::tai_clock::to_utc
- std::chrono::tai_clock::from_utc (3) - std::chrono::tai_clock::from_utc
- std::chrono::tai_clock::now (3) - std::chrono::tai_clock::now
- std::chrono::tai_clock (3) - std::chrono::tai_clock
- std::chrono::time_of_day (3) - std::chrono::time_of_day
- std::chrono::time_of_day<Duration>::hours,std::chrono::time_of_day<Duration>::minutes, (3) - std::chrono::time_of_day<Duration>::hours,std::chrono::time_of_day<Duration>::minutes,
- std::chrono::time_of_day<Duration>::make12,std::chrono::time_of_day<Duration>::make24 (3) - std::chrono::time_of_day<Duration>::make12,std::chrono::time_of_day<Duration>::make24
- std::chrono::time_of_day<Duration>::operatorprecision, (3) - std::chrono::time_of_day<Duration>::operatorprecision,
- std::chrono::time_of_day<Duration>::operatorprecision,std::chrono::time_of_day<Duration>::to_duration (3) - std::chrono::time_of_day<Duration>::operatorprecision,std::chrono::time_of_day<Duration>::to_duration
- std::chrono::time_of_day<Duration>::time_of_day (3) - std::chrono::time_of_day<Duration>::time_of_day
- std::chrono::time_point (3) - std::chrono::time_point
- std::chrono::time_point<Clock,Duration>::max (3) - std::chrono::time_point<Clock,Duration>::max
- std::chrono::time_point<Clock,Duration>::min (3) - std::chrono::time_point<Clock,Duration>::min
- std::chrono::time_point<Clock,Duration>::operator++, (3) - std::chrono::time_point<Clock,Duration>::operator++,
- std::chrono::time_point<Clock,Duration>::operator++,std::chrono::time_point<Clock,Duration>::operator-- (3) - - std::chrono::time_point<Clock,Duration>::operator++,std::chrono::time_point<Clock,Duration>::operator--
- std::chrono::time_point<Clock,Duration>::operator+,operator- (3) - - std::chrono::time_point<Clock,Duration>::operator+,operator-
- std::chrono::time_point<Clock,Duration>::time_point (3) - std::chrono::time_point<Clock,Duration>::time_point
- std::chrono::time_point<Clock,Duration>::time_since_epoch (3) - std::chrono::time_point<Clock,Duration>::time_since_epoch
- std::chrono::time_point_cast (3) - std::chrono::time_point_cast