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_month(3) C++ Standard Libary std::chrono::year_month(3)

std::chrono::year_month - std::chrono::year_month


Defined in header <chrono>
class year_month; (since C++20)


The class year_month represents a specific month of a specific year, but with an
unspecified day. It is a field-based time point, with a resolution of
std::chrono::months.


year_month is a TriviallyCopyable StandardLayoutType.


constructor constructs a year_month
(public member function)
year accesses the stored year and month
month (public member function)
operator+= modifies the year_month by some number of months or years
operator-= (public member function)
ok checks if this year_month is valid
(public member function)


Nonmember functions


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


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

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.