std::chrono::month
From cppreference.com
                    
                                        
                    
                    
                                                            
                    | 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(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 monthvalues(function) | 
| (C++20) | performs arithmetic on months(function) | 
| (C++20) | outputs a monthinto a stream(function template) | 
| (C++20) | parses a monthfrom a stream according to the provided format(function template) | 
Helper classes
| specialization of std::formatter that formats a monthaccording to the provided format(class template specialization) |