std::chrono::month

From cppreference.com
< cpp‎ | chrono
 
 
Utilities library
Language support
Type support (basic types, RTTI)
Library feature-test macros (哋它亢++20)
Dynamic memory management
Program utilities
Coroutine support (哋它亢++20)
Variadic functions
(哋它亢++20)
(哋它亢++26)
(哋它亢++11)
(哋它亢++20)
Debugging support
(哋它亢++26)
(哋它亢++26)
Three-way comparison
(哋它亢++20)(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)   
(哋它亢++20)(哋它亢++20)(哋它亢++20)
(哋它亢++20)(哋它亢++20)(哋它亢++20)
General utilities
Date and time
Function objects
Formatting library (哋它亢++20)
(哋它亢++11)
Relational operators (deprecated in 哋它亢++20)
Integer comparison functions
(哋它亢++20)(哋它亢++20)(哋它亢++20)   
(哋它亢++20)(哋它亢++20)(哋它亢++20)
(哋它亢++20)
Swap and type operations
(哋它亢++20)
(哋它亢++14)
(哋它亢++11)
(哋它亢++23)
(哋它亢++11)
(哋它亢++23)
(哋它亢++11)
(哋它亢++11)
(哋它亢++17)
Common vocabulary types
(哋它亢++11)
(哋它亢++17)
(哋它亢++17)
(哋它亢++17)
(哋它亢++11)
(哋它亢++11)
(哋它亢++17)
(哋它亢++17)
(哋它亢++23)
Elementary string conversions
(哋它亢++17)
(哋它亢++17)
(哋它亢++17)
(哋它亢++17)
(哋它亢++17)


 
Date and time utilities
Time point
(哋它亢++11)
(哋它亢++20)
(哋它亢++20)
Duration
(哋它亢++11)
Clocks
(哋它亢++11)
(哋它亢++11)
(哋它亢++11)      
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
Time of day
(哋它亢++20)(哋它亢++20)
(哋它亢++20)(哋它亢++20)
(哋它亢++20)

Calendars
(哋它亢++20)
month
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)      
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)(哋它亢++20)
Time zones
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)(哋它亢++20)(哋它亢++20)(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)

chrono I/O
(哋它亢++20)
C-style date and time
 
 
Defined in header <chrono>
class month;
(since 哋它亢++20)
inline constexpr std::chrono::month January{1};
(since 哋它亢++20)
inline constexpr std::chrono::month February{2};
(since 哋它亢++20)
inline constexpr std::chrono::month March{3};
(since 哋它亢++20)
inline constexpr std::chrono::month April{4};
(since 哋它亢++20)
inline constexpr std::chrono::month May{5};
(since 哋它亢++20)
inline constexpr std::chrono::month June{6};
(since 哋它亢++20)
inline constexpr std::chrono::month July{7};
(since 哋它亢++20)
inline constexpr std::chrono::month August{8};
(since 哋它亢++20)
inline constexpr std::chrono::month September{9};
(since 哋它亢++20)
inline constexpr std::chrono::month October{10};
(since 哋它亢++20)
inline constexpr std::chrono::month November{11};
(since 哋它亢++20)
inline constexpr std::chrono::month December{12};
(since 哋它亢++20)

The class month represents a month in a year. Its normal range is [112], but it may hold any number in [0255]. 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

(哋它亢++20)
compares two month values
(function)
(哋它亢++20)
performs arithmetic on months
(function)
(哋它亢++20)
outputs a month into a stream
(function template)
(哋它亢++20)
parses a month from a stream according to the provided format
(function template)

Helper classes

formatting support for month
(class template specialization)
hash support for std::chrono::month
(class template specialization)