std::chrono::utc_clock(3cxx)
π NAME π
std::chrono::utc_clock β okay bestie, this is the libstdc++ manual page for std::chrono::utc_clock(3cxx), and weβre about to get you fully acquainted with the whole cast: the types, the static functions, the one attribute, and the UTC clock lore. π°οΈβ¨
πΈ SYNOPSIS πΈ
First things first, include the header:
#include <chrono>
π§Έ Public Types π§Έ
durationβ literally this alias:
using duration = chrono::duration< rep, period >
periodβ literally this alias:
using period = system_clock::period
repβ literally this alias:
using rep = system_clock::rep
time_pointβ literally this alias:
using time_point = chrono::time_point< utc_clock >
β‘ Static Public Member Functions β‘
from_sysβ the signature is exactly:
template<typename _Duration > static utc_time< common_type_t< _Duration, seconds > > from_sys (const sys_time< _Duration > &__t)
nowβ the signature is exactly:
static time_point now ()
to_sysβ the signature is exactly:
template<typename _Duration > static sys_time< common_type_t< _Duration, seconds > > to_sys (const utc_time< _Duration > &__t)
π Static Public Attributes π
is_steadyβ the one attribute, exactly as written:
static constexpr bool is_steady
π Detailed Description π
A clock that measures Universal Coordinated Time (UTC).
The epoch is 1970-01-01 00:00:00.
Since: C++20
ποΈ Author ποΈ
Generated automatically by Doxygen for libstdc++ from the source code.
mwah π β this cute little sign-off comes to you from the libstdc++ source/version, with std::chrono::utc_clock(3cxx) doing its little footer dance, and there is literally no date printed, so consider this your date-free bestie sendoff ππ«Ά
π¦ 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