GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::chrono::year(3) C++ Standard Libary std::chrono::year(3)

std::chrono::year - std::chrono::year


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.


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


operator== compares two year values
operator<=> (function)
(C++20)
operator+ performs arithmetic on years
operator- (function)
(C++20)
operator<< outputs a year into a stream
(C++20) (function template)
from_stream parses a year from a stream according to the provided format
(C++20) (function template)


std::formatter<std::chrono::year> specialization of std::formatter that formats a
(C++20) year according to the provided format
(class template specialization)


Defined in inline namespace std::literals::chrono_literals
operator""y A std::chrono::year literal representing a particular year
(C++20) (function)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.