std::chrono..._second_info(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

✨ 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