|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
year_month::year_month | ||||
| Nonmember functions | ||||
| Helper classes | ||||
year_month()=default; | (1) | (since C++20) |
constexpr year_month(conststd::chrono::year& y, conststd::chrono::month& m)noexcept; | (2) | (since C++20) |
Constructs ayear_month object.
year_month object storing the yeary and the monthm.A more convenient way to construct ayear_month is withoperator/, e.g.,2007y/std::chrono::April.
(C++20) | conventional syntax for Gregorian calendar date creation (function)[edit] |