std::chrono..._second_info(3)
β¨ NAME β¨
std::chrono::leap_second_info - std::chrono::leap_second_info. Yeah bestie, it's literally the same name on both sides of the dash, and this whole page is about it π
.
okay so welcome to std::chrono..._second_info(3) from the C++ Standard Libary β manual name folded in near the top like a lil name tag π«Ά.
π Synopsis π
Defined in header <chrono>
struct leap_second_info {
bool is_leap_second; (since C++20)
std::chrono::seconds elapsed;
};
A leap_second_info indicates whether a UTC time is during a positive leap second insertion, and the total number of leap seconds between 1 January 1970 and the UTC time. It's giving tiny struct, big leap-second energy π.
Also, leap_second_info has no base classes or members other than is_leap_second, elapsed, and implicitly declared special member functions. Minimal. Iconic. No extra baggage, periodt.
π Member objects π
is_leap_secondβ whether the UTC time is during a positive leap second insertion (public member object).elapsedβ the sum of leap seconds between 1 January 1970 and the UTC time (public member object).
πΈ Notes πΈ
leap_second_info is typically obtained from std::chrono::get_leap_second_info. That's the plug β go get one from there, bestie π«Ά.
π¦ See also π¦
leap_secondβ contains information about a leap second insertion (C++20) (class).
xoxo, your manual bestie π β sourced from http://cppreference.com, version date 2024.06.10, page tag std::chrono..._second_info(3).
π¦ 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