std::chrono...econd::date(3)

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

πŸ¦‹ std::chrono...econd::date(3)

okay bestie, this one is from the C++ Standard Libary manual (yes, that's the spelling on the page, don't come for me πŸ’…). it's a tiny little member-function moment, but it's lowkey iconic.


✨ NAME ✨

std::chrono::leap_second::date β€” std::chrono::leap_second::date

🌸 Synopsis 🌸

constexpr std::chrono::sys_seconds date() const noexcept;

Obtains the date and time of the leap second insertion. that's the whole vibe: it gets you the moment the leap second got inserted. periodt πŸ’–

πŸ’– Return value πŸ’–

A std::chrono::sys_seconds representing the date and time at which the leap second was inserted. yes bestie, it's giving exactly that πŸŽ€


signing off with the cute little footer info: source/version + date is cppreference.com · 2024.06.10 🌈🫢

πŸ“¦ where this page comes from