std::chrono...weekday_last(3)
π NAME π
Okay bestie, welcome to the std::chrono...weekday_last(3) page from the C++ Standard Libary π This is the constructor page for std::chrono::year_month_weekday_last, and the full name is literally std::chrono::year_month_weekday_last::year_month_weekday_last β and yes, the NAME line repeats that exact same string on both sides of the dash, because repetition is the brand π
β¨ Synopsis β¨
Hereβs the exact signature, preserved character for character like a sacred little text π«Ά
constexpr
year_month_weekday_last( const std::chrono::year& y, const
std::chrono::month& m,
(since C++20)
const std::chrono::weekday_last& wdl )
noexcept;
So what does it do? It constructs a year_month_weekday_last object storing the year y, the month m, and the weekday wdl.weekday(). The constructed object represents the last weekday of that year and month. Thatβs the whole vibe: year + month + last weekday, assembled ποΈβ¨
π¦ Notes π¦
Plot twist, you donβt only get here through the constructor. A year_month_weekday_last can also be created by combining one of the partial-date types std::chrono::year_month and std::chrono::month_weekday_last with the missing component (weekday_last and year, respectively) using operator/. Thatβs the lowkey iconic combo move π
π See also π
operator/β conventional syntax for Gregorian calendar date creation (C++20) (function)
xoxo, your chrono bestie π source/version: http://cppreference.com Β· page date: 2024.06.10 Β· manual: std::chrono...weekday_last(3) π«Ά
π¦ 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