std::chrono::day

From cppreference.com
< cpp‎ | chrono
 
 
Utilities library
Language support
Type support (basic types, RTTI)
Library feature-test macros (C++20)
Dynamic memory management
Program utilities
Coroutine support (C++20)
Variadic functions
Debugging support
(C++26)
Three-way comparison
(C++20)
(C++20)(C++20)(C++20)
(C++20)(C++20)(C++20)
General utilities
Date and time
Function objects
Formatting library (C++20)
(C++11)
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)(C++20)(C++20)   
(C++20)
Swap and type operations
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)
Elementary string conversions
(C++17)
(C++17)

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

The class day represents a day in a month. Its normal range is [131], but it may hold any number in [0255].

day is a TriviallyCopyable StandardLayoutType.

Member functions

constructs a day
(public member function)
increments or decrements the day
(public member function)
adds or subtracts a number of days
(public member function)
retrieves the stored day value
(public member function)
checks if the stored day value is in the normal range
(public member function)

Nonmember functions

compares two day values
(function)
adds or subtracts a number of days and a day, or find the difference between two days
(function)
outputs a day into a stream
(function template)
parses a day from a stream according to the provided format
(function template)

Helper classes

formatting support for day
(class template specialization)
hash support for std::chrono::day
(class template specialization)

Literals

Defined in inline namespace std::literals::chrono_literals
a std::chrono::day literal representing a day of a month
(function)