On this page
std::chrono::month
Defined in header <chrono> |
||
---|---|---|
|
(since C++20) | |
|
(since C++20) | |
|
(since C++20) | |
|
(since C++20) | |
|
(since C++20) | |
|
(since C++20) | |
|
(since C++20) | |
|
(since C++20) | |
|
(since C++20) | |
|
(since C++20) | |
|
(since C++20) | |
|
(since C++20) | |
|
(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 (public member function) |
|
increments or decrements the month (public member function) |
|
adds or subtracts a number of months (public member function) |
|
retrieves the stored month value (public member function) |
|
checks if the stored month value is in the normal range (public member function) |
Nonmember functions
(C++20)
|
compares two month values (function) |
(C++20)
|
performs arithmetic on month s (function) |
(C++20)
|
outputs a month into a stream (function template) |
(C++20)
|
parses a month from a stream according to the provided format (function template) |
Helper classes
(C++20)
|
formatting support for month (class template specialization) |
(C++26)
|
hash support for std::chrono::month (class template specialization) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/chrono/month