std::chrono::leap_second_info
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Date and time library
(C++11)
(C++20)
(C++20)
(C++11)
(C++11)
(C++11)
(C++20)
(C++20)
(C++20)
(C++11)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
leap_second_info
(C++20)
(C++20)
std::chrono::utc_clock
Member functions
Time point I/O
Leap second insertion information
leap_second_info
Defined in header
<chrono>
struct leap_second_info {
(since C++20)
bool is_leap_second;
std::chrono::seconds elapsed;
A leap_second_info
indicates whether a UTC time is during a positive leap second insertion and the total number of leap seconds between 1 January 1970 and the UTC time.
leap_second_info
has no base classes or members other than is_leap_second, elapsed, and implicitly declared special member functions.
[edit] Member objects
is_leap_second
(public member object)
elapsed
(public member object)
[edit] Notes
leap_second_info
is typically obtained from std::chrono::get_leap_second_info .