Namespaces
Variants
Actions

std::chrono::leap_second

From cppreference.com
< cpp‎ | chrono
 
C++
 
Date and time library
Time point
(C++11)
(C++20)
Duration
(C++11)
Clocks
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Time of day
(C++20)(C++20)
(C++20)(C++20)
(C++20)
Calendar
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
chrono I/O
(C++20)

 
std::chrono::leap_second
Defined in header <chrono>
class leap_second;
(since C++20)

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

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

leap_second 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_second values or a leap_second value and a sys_time
(function template) [edit]

[edit] Helper classes

hash support for std::chrono::leap_second
(class template specialization)

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant