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