名前空間
変種
操作

std::chrono::year::min

From cppreference.com
< cpp‎ | chrono‎ | year
 
 
 
 
static constexpr std::chrono::year min() noexcept;
(C++20以降)

最小の `year` を返します。つまり、std::chrono::year(-32767) です。

[編集] 戻り値

std::chrono::year(-32767)

[編集]

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

出力

The minimum year is: -32767
English 日本語 中文(简体) 中文(繁體)