std::chrono::year::min(3)
π 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
- 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