Namespaces
Variants

std::chrono::year:: min

From cppreference.net
static constexpr std:: chrono :: year min ( ) noexcept ;
(seit C++20)

Gibt das kleinstmögliche year zurück, also std:: chrono :: year ( - 32767 ) .

Rückgabewert

std:: chrono :: year ( - 32767 )

Beispiel

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

Ausgabe:

The minimum year is: -32767