Namespaces
Variants
Actions

std::chrono::get_leap_second_info

From cppreference.com
< cpp‎ | chrono‎ | utc clock
 
 
Date and time library
(C++11)
(C++20)
(C++11)
(C++11)
(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)
get_leap_second_info
(C++20)
 
 
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.

[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]
(C++20)
contains information about a leap second insertion
(class) [edit]
Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/chrono/utc_clock/get_leap_second_info&oldid=161673"

AltStyle によって変換されたページ (->オリジナル) /