Section

std::chrono::utc_clock

The clock std::chrono::utc_clock is a Clock that represents Coordinated Universal Time (UTC). It measures time since 00:00:00 UTC, Thursday, 1 January 1970, including leap seconds.

# Declarations

class utc_clock;

(since C++20)

# Notes

The official UTC epoch is 1 January 1972. utc_clock uses 1 January 1970 instead to be consistent with std::chrono::system_clock.