std::chrono..._second_info(3)
π NAME π
hiii bestie! Welcome to the std::chrono..._second_info(3) page from the C++ Standard Libary manual (yes, that's the header's spelling, not me π). Today's main character is std::chrono::get_leap_second_info β the NAME line literally says std::chrono::get_leap_second_info - std::chrono::get_leap_second_info, so we're keeping it 100% consistent, periodt.
β¨ Synopsis β¨
Okay so here's the vibe check for the signature. It lives in header <chrono>, it's (since C++20), and it's templated on Duration:
Defined in header <chrono>
template< class Duration >
std::chrono::leap_second_info
get_leap_second_info( const std::chrono::utc_time<Duration>& ut );
This function obtains a std::chrono::leap_second_info. Inside that little guy, is_leap_second tells you whether ut is during a positive leap second insertion, and elapsed is the sum of leap seconds between 1 January 1970 and ut β respectively, in that exact order, iykyk. π
πΈ Parameters πΈ
utβ the UTC time you want to examine, bestie. That's the whole parameter. Slay.
π Return value π
A leap_second_info value specified above. That's it, that's the return β no extra lore, no side quest. π«Ά
π Exceptions π
May throw implementation-defined exceptions. So yeah, it can throw stuff the implementation gets to decide; that's the assignment. π
π See also π
leap_second_infoβ leap second insertion information(C++20)(class)leap_secondβ contains information about a leap second insertion(C++20)(class)
mwah π this page came from source/version http://cppreference.com, date 2024.06.10, and the footer title is std::chrono..._second_info(3). Byeee π¦
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms