std::chrono::year (3) - Linux Manuals
std::chrono::year: std::chrono::year
NAME
std::chrono::year - std::chrono::year
Synopsis
Defined in header <chrono>
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.
Member functions
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
constructor     (public member function)
operator++      increments or decrements the year
operator++(int) (public member function)
operator--
operator--(int)
 
operator+=      (public member function)
operator-=
 
operator+       (public member function)
operator-
 
is_leap         (public member function)
 
operator_int    (public member function)
 
ok              (public member function)
min             returns the smallest possible year value
 
[static]
max             returns the largest possible year
 
[static]
Nonmember functions
operator==
operator!=  compares two year objects
operator<   (function)
operator<=
operator>
operator>=
 
operator+   (public member function)
operator-
 
operator<<  (function template)
 
to_stream   (function template)
 
from_stream (function template)
Literals
Defined in inline namespace std::literals::chrono_literals
operator""y A std::chrono::year literal representing a particular year
 
(C++20)