constexpr bool ok() const noexcept; | (since C++20) |
Checks if this year_month_day
object represents a valid calendar date.
true
if this year_month_day
object represents a valid calendar date, that is, the stored year, month, and day values are all valid and the stored day value is within the number of days in the given year and month. Otherwise false
.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/chrono/year_month_day/ok