std::chrono...nth_day_last(3)
okay so this is the std::chrono...nth_day_last(3) page from the C++ Standard Libary manual β yes, that's the actual manual name, typo and all π β and today's main character is std::chrono::month_day_last::month_day_last. iykyk π
π NAME π
std::chrono::month_day_last::month_day_last β std::chrono::month_day_last::month_day_last (yes, it's the constructor for std::chrono::month_day_last; constructors love a dramatic repeat π).
β¨ Synopsis β¨
here's the exact signature, bestie β look at it with your whole chest:
constexpr explicit month_day_last( const std::chrono::month& m )
(since C++20)
noexcept;
it's constexpr, it's explicit, it's noexcept, and it's been around since C++20 β¨. What does it do? It constructs a month_day_last object that represents the last day of the month m. periodt. π«Ά
π Notes π
A more convenient way to construct a month_day_last is with operator/, e.g. π std::chrono::April/std::chrono::last.
π See also π
operator/β conventional syntax for Gregorian calendar date creation (C++20) (function) π
mwah π β this little page came from http://cppreference.com and is dated 2024.06.10. go build something cute, bestie πβ¨
π¦ 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