std::chrono::get_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)
(C++20)
get_leap_second_info
(C++20)
std::chrono::utc_clock 
 
 Member functions
 Time point I/O
 Leap second insertion information
get_leap_second_info
Defined in header 
 
 
<chrono> 
 template< class Duration >
get_leap_second_info( const std::chrono::utc_time <Duration>& ut );
 
 (since C++20) 
get_leap_second_info( const std::chrono::utc_time <Duration>& ut );
Obtains a std::chrono::leap_second_info  whose is_leap_second and elapsed indicate whether ut is during a positive leap second insertion and the sum of leap seconds between 1 January 1970 and ut, respectively.
Contents
[edit] Parameters
 ut
 -
 UTC time to examine
[edit] Return value
A leap_second_info value specified above.
[edit] Exceptions
May throw implementation-defined exceptions.