|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <chrono> | ||
class year_month; | (since C++20) | |
The classyear_month represents a specific month of a specific year, but with an unspecified day. It is a field-based time point, with a resolution ofstd::chrono::months.
year_month is aTriviallyCopyableStandardLayoutType.
constructs ayear_month(public member function)[edit] | |
| accesses the stored year and month (public member function)[edit] | |
modifies theyear_month by some number of months or years(public member function)[edit] | |
checks if thisyear_month is valid(public member function)[edit] |
(C++20) | compares twoyear_month values(function)[edit] |
(C++20) | performs arithmetic onyear_month(function)[edit] |
(C++20) | outputs ayear_month into a stream(function template)[edit] |
(C++20) | parses ayear_month from a stream according to the provided format(function template)[edit] |
formatting support foryear_month(class template specialization)[edit] | |
| hash support forstd::chrono::year_month (class template specialization) |