std::chrono...ock::to_utc(3)
okay so welcome to std::chrono...ock::to_utc(3) from the C++ Standard Libary β manual name folded in near the top like a little name tag, no cap. β¨ This page is about std::chrono::gps_clock::to_utc, and it's giving βconvert GPS time to UTC timeβ energy. π
πΈ NAME πΈ
std::chrono::gps_clock::to_utc - std::chrono::gps_clock::to_utc
π°οΈ Synopsis π°οΈ
template< class Duration >
static std::chrono::utc_time<std::common_type_t<Duration,
(since C++20)
std::chrono::seconds>>
to_utc( const std::chrono::gps_time<Duration>& t ) noexcept;
This function converts the gps_time t to a utc_time representing the same point in time. Same moment, different clock aesthetic. β°β¨
π Return value π
Returns 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 adding 315964809s β and yes, 315964809 is literally the number of seconds between the epochs of the two clocks: 1980-01-06 00:00:00 UTC for gps_clock and 1970-01-01 00:00:00 UTC for utc_clock. π°οΈπ₯
π Example π
This section is incomplete Reason: no example
π See also π
from_utcβ converts autc_timetogps_time[static](public static member function)
clock_castβ convert time points of one clock to another(C++20)(function template)
π·οΈ Category: π·οΈ
Todo no example
bye bestie π«Ά β source/version: http://cppreference.com, date: 2024.06.10.
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms