Namespaces
Variants

std::chrono::year:: min

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

Retourne la plus petite valeur possible pour year , c'est-à-dire std:: chrono :: year ( - 32767 ) .

Valeur de retour

std:: chrono :: year ( - 32767 )

Exemple

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

Sortie :

The minimum year is: -32767