std::chrono...nth_day_last(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

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