std::chrono::year (3) - Linux Manuals
std::chrono::year: std::chrono::year
Command to display std::chrono::year
manual in Linux: $ man 3 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
constructs a year
constructor (public member function)
operator++ increments or decrements the year
operator++(int) (public member function)
operator--
operator--(int)
adds or subtracts a number of years from a year
operator+= (public member function)
operator-=
applies unary operators to year
operator+ (public member function)
operator-
determines if the year is a leap year
is_leap (public member function)
retrieve the year value
operator_int (public member function)
checks if the stored year value is valid
ok (public member function)
min returns the smallest possible year value
(public static member function)
[static]
max returns the largest possible year
(public static member function)
[static]
Nonmember functions
operator==
operator!= compares two year objects
operator< (function)
operator<=
operator>
operator>=
performs arithmetic on years
operator+ (public member function)
operator-
outputs a year into a stream
operator<< (function template)
outputs a year into a stream according to the provided format
to_stream (function template)
parses a year from a stream according to the provided format
from_stream (function template)
Literals
Defined in inline namespace std::literals::chrono_literals
operator""y A std::chrono::year literal representing a particular year
(function)
(C++20)
Pages related to std::chrono::year
- std::chrono::year::is_leap (3) - std::chrono::year::is_leap
- std::chrono::year::max (3) - std::chrono::year::max
- std::chrono::year::min (3) - std::chrono::year::min
- std::chrono::year::ok (3) - std::chrono::year::ok
- std::chrono::year::operator++,std::chrono::year::operator-- (3) - - std::chrono::year::operator++,std::chrono::year::operator--
- std::chrono::year::operator+,std::chrono::year::operator- (3) - - std::chrono::year::operator+,std::chrono::year::operator-
- std::chrono::year::operator+=,std::chrono::year::operator-= (3) - std::chrono::year::operator+=,std::chrono::year::operator-=
- std::chrono::year::operatorint (3) - std::chrono::year::operatorint
- std::chrono::year::year (3) - std::chrono::year::year
- std::chrono::year_month (3) - std::chrono::year_month
- std::chrono::year_month::ok (3) - std::chrono::year_month::ok
- std::chrono::year_month::operator+=,std::chrono::year_month::operator-= (3) - std::chrono::year_month::operator+=,std::chrono::year_month::operator-=
- std::chrono::year_month::year,std::chrono::year_month::month (3) - std::chrono::year_month::year,std::chrono::year_month::month
- std::chrono::year_month::year_month (3) - std::chrono::year_month::year_month
- std::chrono::year_month_day (3) - std::chrono::year_month_day
- std::chrono::year_month_day::ok (3) - std::chrono::year_month_day::ok
- std::chrono::year_month_day::operator+=,std::chrono::year_month_day::operator-= (3) - std::chrono::year_month_day::operator+=,std::chrono::year_month_day::operator-=
- std::chrono::year_month_day::operatorsys_days,std::chrono::year_month_day::operator (3) - std::chrono::year_month_day::operatorsys_days,std::chrono::year_month_day::operator
- std::chrono::year_month_day::operatorsys_days,std::chrono::year_month_day::operatorlocal_days (3) - std::chrono::year_month_day::operatorsys_days,std::chrono::year_month_day::operatorlocal_days
- std::chrono::year_month_day::year,std::chrono::year_month_day::month, (3) - std::chrono::year_month_day::year,std::chrono::year_month_day::month,
- std::chrono::year_month_day::year,std::chrono::year_month_day::month,std::chrono::year_month_day::day (3) - std::chrono::year_month_day::year,std::chrono::year_month_day::month,std::chrono::year_month_day::day