std::chrono::year - cppreference.com (original) (raw)

| | | | | ----------- | | ------------- | | class year; | | (since C++20) |

The class year represents a year in the proleptic Gregorian calendar. Its range is [-32767, 32767].

year is a TriviallyCopyable StandardLayoutType.

[edit] Member functions

(constructor) constructs a year (public member function) [edit]
operator++operator++(int)operator--operator--(int) increments or decrements the year (public member function) [edit]
operator+=operator-= adds or subtracts a number of years from a year (public member function) [edit]
operator+operator- applies unary operators to year (public member function) [edit]
is_leap determines if the year is a leap year (public member function) [edit]
operator int retrieve the year value (public member function) [edit]
ok checks if the stored year value is valid (public member function) [edit]
min[static] returns the smallest possible year value (public static member function) [edit]
max[static] returns the largest possible year (public static member function) [edit]

[edit] Non-member functions

[edit] Helper classes

[edit] Literals

Defined in inline namespace std::literals::chrono_literals