std::chrono::utc_clock(3)

std::chrono::utc_clock3

Usage

#include <chrono>

Public Types

using duration
using period
using rep
using time_point

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

Author

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

From gcc 16.2.1+r23+gd564253eb6c8-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.