std::chrono::year_month (3) - Linux Manuals
std::chrono::year_month: std::chrono::year_month
NAME
std::chrono::year_month - std::chrono::year_month
Synopsis
Defined in header <chrono>
class year_month; (since C++20)
The class year_month represents a specific month of a specific year, but with an unspecified day. It is a field-based time point, with a resolution of std::chrono::months.
year_month is a TriviallyCopyable StandardLayoutType.
Member functions
constructor (public member function)
year (public member function)
month
operator+= (public member function)
operator-=
ok (public member function)
Nonmember functions
operator==
operator!= compares two year_month objects
operator< (function)
operator<=
operator>
operator>=
operator+ (function)
operator-
operator<< (function template)
to_stream (function template)
from_stream (function template)