std::chrono::month (3) - Linux Manuals
std::chrono::month: std::chrono::month
NAME
std::chrono::month - std::chrono::month
Synopsis
Defined in header <chrono>
class month; (since C++20)
inline constexpr std::chrono::month January{1}; (since C++20)
inline constexpr std::chrono::month February{2}; (since C++20)
inline constexpr std::chrono::month March{3}; (since C++20)
inline constexpr std::chrono::month April{4}; (since C++20)
inline constexpr std::chrono::month May{5}; (since C++20)
inline constexpr std::chrono::month June{6}; (since C++20)
inline constexpr std::chrono::month July{7}; (since C++20)
inline constexpr std::chrono::month August{8}; (since C++20)
inline constexpr std::chrono::month September{9}; (since C++20)
inline constexpr std::chrono::month October{10}; (since C++20)
inline constexpr std::chrono::month November{11}; (since C++20)
inline constexpr std::chrono::month December{12}; (since C++20)
The class month represents a month in a year. Its normal range is [1, 12], but it may hold any number in [0, 255]. Twelve named constants are predefined in the std::chrono namespace for the twelve months of the year.
month is a TriviallyCopyable StandardLayoutType.
Member functions
constructor (public member function)
operator++ increments or decrements the month
operator++(int) (public member function)
operator--
operator--(int)
operator+= (public member function)
operator-=
operator_unsigned (public member function)
ok (public member function)
Nonmember functions
operator==
operator!= compares two month objects
operator< (function)
operator<=
operator>
operator>=
operator+ (function)
operator-
operator<< (function template)
to_stream (function template)
from_stream (function template)