All Chrono Clocks and Calendar Types

All Chrono Clocks and Calendar Types

A compact scan page for clocks, durations, time points, calendar types, and time-zone related facilities from <chrono>.

How to use this reference page

Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.

  • Scan the top of the page first to identify the primary types, functions, or algorithm families involved.
  • Use the nearby-page links when your question is really about a companion header, related algorithm family, or broader subsystem.
  • Validate tricky behavior with a small compileable example before relying on memory for details like invalidation, ordering, allocation, or lifetime rules.

All Chrono Clocks and Calendar Types

Core time abstractions

Clock types

Calendar field types

Time-of-day and local/zoned facilities

Time-zone database facilities

Practical rules

Example in practice

#include <chrono>

int main() {
    using namespace std::chrono_literals;
    auto timeout = 150ms;
    auto next = std::chrono::steady_clock::now() + timeout;
    return next.time_since_epoch().count() > 0 ? 0 : 1;
}