std::chrono::year::min
來自 cppreference.com
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