std::chrono::day(3)
π NAME π
std::chrono::day β std::chrono::day. This is the std::chrono::day(3) page from the C++ Standard Libary (yes, that spelling is straight from the header, don't come for me π), and it's literally the class for one day in a month. π
β¨ Synopsis β¨
Defined in header <chrono>
class day; (since C++20)
okay so day represents a day in a month. Its normal range is [1, 31], but it may hold any number in [0, 255]. Yes, bestie, it can technically hold numbers outside the normal range β that's the tea. β
day is a TriviallyCopyable StandardLayoutType. Slay.
π Member functions π
- constructor β constructs a
day(public member function) operator++,operator++(int),operator--,operator--(int)β increments or decrements the day (public member function)operator+=,operator-=β adds or subtracts a number of days (public member function)operator unsignedβ retrieves the stored day value (public member function)okβ checks if the stored day value is in the normal range (public member function)
π₯ Nonmember functions π₯
operator==,operator<=>(C++20) β compares twodayvalues (function)operator+,operator-(C++20) β adds or subtracts a number of days and aday, or find the difference between two days (function)operator<<(C++20) β outputs adayinto a stream (function template)from_stream(C++20) β parses adayfrom a stream according to the provided format (function template)
π¦ Helper classes π¦
std::formatter<std::chrono::day>(C++20) β formatting support forday(class template specialization)std::hash<std::chrono::day>(C++26) β hash support forstd::chrono::day(class template specialization)
π Literals π
Defined in inline namespace std::literals::chrono_literals.
operator""d(C++20) β astd::chrono::dayliteral representing a day of a month (function)
That's the whole page, bestie π«Ά Source/version: http://cppreference.com Β· date: 2024.06.10 Β· page: std::chrono::day(3) β go off ππ
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms