std::chrono::month (3) - Linux Manuals
std::chrono::month: std::chrono::month
Command to display std::chrono::month
manual in Linux: $ man 3 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
constructs a month
constructor (public member function)
operator++ increments or decrements the month
operator++(int) (public member function)
operator--
operator--(int)
adds or subtracts a number of months
operator+= (public member function)
operator-=
retrieves the stored month value
operator_unsigned (public member function)
checks if the stored month value is in the normal range
ok (public member function)
Nonmember functions
operator==
operator!= compares two month objects
operator< (function)
operator<=
operator>
operator>=
performs arithmetic on months
operator+ (function)
operator-
outputs a month into a stream
operator<< (function template)
outputs a month into a stream according to the provided format
to_stream (function template)
parses a month from a stream according to the provided format
from_stream (function template)
Pages related to std::chrono::month
- std::chrono::month::month (3) - std::chrono::month::month
- std::chrono::month::ok (3) - std::chrono::month::ok
- std::chrono::month::operator++,std::chrono::month::operator-- (3) - - std::chrono::month::operator++,std::chrono::month::operator--
- std::chrono::month::operator+=,std::chrono::month::operator-= (3) - std::chrono::month::operator+=,std::chrono::month::operator-=
- std::chrono::month::operatorunsigned (3) - std::chrono::month::operatorunsigned
- std::chrono::month_day (3) - std::chrono::month_day
- std::chrono::month_day::month,std::chrono::month_day::day (3) - std::chrono::month_day::month,std::chrono::month_day::day
- std::chrono::month_day::month_day (3) - std::chrono::month_day::month_day
- std::chrono::month_day::ok (3) - std::chrono::month_day::ok
- std::chrono::month_day_last (3) - std::chrono::month_day_last
- std::chrono::month_day_last::month (3) - std::chrono::month_day_last::month
- std::chrono::month_day_last::month_day_last (3) - std::chrono::month_day_last::month_day_last
- std::chrono::month_day_last::ok (3) - std::chrono::month_day_last::ok
- std::chrono::month_weekday (3) - std::chrono::month_weekday
- std::chrono::month_weekday::month,std::chrono::month_weekday::weekday_indexed (3) - std::chrono::month_weekday::month,std::chrono::month_weekday::weekday_indexed
- std::chrono::month_weekday::month_weekday (3) - std::chrono::month_weekday::month_weekday
- std::chrono::month_weekday::ok (3) - std::chrono::month_weekday::ok
- std::chrono::month_weekday_last (3) - std::chrono::month_weekday_last
- std::chrono::month_weekday_last::month,std::chrono::month_weekday_last::weekday_last (3) - std::chrono::month_weekday_last::month,std::chrono::month_weekday_last::weekday_last
- std::chrono::month_weekday_last::month_weekday_last (3) - std::chrono::month_weekday_last::month_weekday_last
- std::chrono::month_weekday_last::ok (3) - std::chrono::month_weekday_last::ok
- std::chrono::_V2_steady_clock (3)