std::chrono::gps_clock(3cxx)
π std::chrono::gps_clock β 3cxx manual, bestie edition π
Okay so you opened the 3cxx page for std::chrono::gps_clock, and I'm obsessed. She's the GPS-time clock from <chrono>, and we're gonna go through every single detail together. No skipping, no cap. β¨
πΈ NAME πΈ
std::chrono::gps_clock β the GPS clock, periodt. π°οΈπ
β SYNOPSIS β
#include <chrono>
π Public Types π
using duration = chrono::duration< rep, period >β thedurationtype, literally right there.using period = system_clock::periodβ the period is borrowed fromsystem_clock::period.using rep = system_clock::repβ the rep is borrowed fromsystem_clock::rep.using time_point = chrono::time_point< gps_clock >β the time-point type ischrono::time_point< gps_clock >.
π¦ Static Public Member Functions π¦
The from_utc signature, exactly as printed:
template<typename _Duration > static gps_time< common_type_t< _Duration,
seconds > > from_utc (const utc_time< _Duration > &__t)
The now() signature, exactly as printed:
static time_point now ()
The to_utc signature, exactly as printed:
template<typename _Duration > static utc_time< common_type_t< _Duration,
seconds > > to_utc (const gps_time< _Duration > &__t)
π Static Public Attributes π
static constexpr bool is_steadyβ yep, that's the whole attribute, bestie.
π₯ Detailed Description π₯
A clock that measures GPS time. Iconic behavior. β¨
The epoch is 1980-01-06 00:00:00. Remember that date, it's giving time-origin main character energy. π°οΈ
Since: C++20
π Author π
Author: Generated automatically by Doxygen for libstdc++ from the source code.
Mwah π β this cutie is brought to you by libstdc++, in the 3cxx manual. The original footer doesn't print a date, so I'm not inventing one, bestie. π«Άπ
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms