Namespaces
Variants
Views
Actions

std::chrono::leap

From cppreference.com
< cpp‎ | chrono
 
 
 
Date and time utilities
(C++11)
(C++11)
Clocks
(C++20)
                                             
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Calendars
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Time zones
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
leap
(C++20)
C-style date and time
 
std::chrono::leap
 
Defined in header <chrono>
class leap;
(since C++20)

The class leap represents the date and time of a leap second insertion.

Users cannot construct leap objects except by copying from existing leap objects. The library implementation creates leap objects when it initializes the time zone database and provides const access to these objects.

leap has a defaulted copy constructor and a defaulted copy assignment operator.

[edit] Member functions

obtains the time of leap second insertion
(public member function) [edit]

[edit] Nonmember functions

compares two leap objects or a leap object and a sys_time
(function template) [edit]