std::chrono::utc_clock - Man Page

Synopsis

Public Types

using duration = chrono::duration< rep, period >
using period = system_clock::period
using rep = system_clock::rep
using time_point = chrono::time_point< utc_clock >

Static Public Member Functions

template<typename _Duration > static utc_time< common_type_t< _Duration, seconds > > from_sys (const sys_time< _Duration > &__t)
static time_point now ()
template<typename _Duration > static sys_time< common_type_t< _Duration, seconds > > to_sys (const utc_time< _Duration > &__t)

Static Public Attributes

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

Definition at line 127 of file chrono.

Member Typedef Documentation

using std::chrono::utc_clock::duration =  chrono::duration<rep, period>

Definition at line 132 of file chrono.

using std::chrono::utc_clock::period =  system_clock::period

Definition at line 131 of file chrono.

using std::chrono::utc_clock::rep =  system_clock::rep

Definition at line 130 of file chrono.

using std::chrono::utc_clock::time_point =  chrono::time_point<utc_clock>

Definition at line 133 of file chrono.

Member Function Documentation

static time_point std::chrono::utc_clock::now () [inline], [static]

Definition at line 138 of file chrono.

template<typename _Duration > static sys_time< common_type_t< _Duration, seconds > > std::chrono::utc_clock::to_sys (const utc_time< _Duration > & __t) [inline], [static]

Definition at line 144 of file chrono.

Member Data Documentation

constexpr bool std::chrono::utc_clock::is_steady [static], [constexpr]

Definition at line 134 of file chrono.

Author

Generated automatically by Doxygen for libstdc++ from the source code.

Info

Thu Jan 19 2023 libstdc++