std::chrono::year::min(3)

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

πŸ’– std::chrono::year::min πŸ’–

okay bestie, this is the manual page for std::chrono::year::min(3) from the C++ Standard Libary β€” yes, that's the manual name, and yes, we're about to make the smallest possible year sound iconic ✨

🌸 NAME 🌸

  • std::chrono::year::min β€” std::chrono::year::min

like... it's the same name twice, and honestly? slay. that's the whole NAME section, no cap πŸ’…

✨ Synopsis ✨

static constexpr std::chrono::year min() noexcept;  (since C++20)

It returns the smallest possible year, that is, std::chrono::year(-32767). literally the minimum year, periodt 🌈

πŸ’– Return value πŸ’–

std::chrono::year(-32767)

that's it. that's the return value. cute, tiny, negative, iconic πŸŽ€

πŸŽ€ Example πŸŽ€

// Run this code

        #include <chrono>
        #include <iostream>

        int main()
        {
            std::cout << "The minimum year is: " <<
       (int)std::chrono::year::min() << '\n';
        }

πŸ¦‹ Output: πŸ¦‹

The minimum year is: -32767

mwah πŸ’‹ before you go: this page's source is http://cppreference.com, its version/date is 2024.06.10, and the manual page is std::chrono::year::min(3). bye bestie, go flex that minimum year πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from