Namespaces
Variants
Views
Actions

std::chrono::get_leap_second_info

From cppreference.com
< cpp‎ | chrono‎ | utc clock
 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)(C++20)(C++20)   
(C++20)
Swap and type operations
(C++14)
(C++11)

(C++11)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)

Elementary string conversions
(C++17)
(C++17)

Stacktrace
 
Date and time utilities
Time point
(C++11)
(C++20)
Duration
(C++11)
Clocks
(C++11)      
(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)

Calendars
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
Time zones
(C++20)
(C++20)
(C++20)
(C++20)
get_leap_second_info
(C++20)

chrono I/O
(C++20)
C-style date and time
 
 
Defined in header <chrono>
template< class Duration >

std::chrono::leap_second_info

    get_leap_second_info( const std::chrono::utc_time<Duration>& ut );
(since C++20)

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.

[edit] See also

leap second insertion information
(class) [edit]
contains information about a leap second insertion
(class) [edit]