Namespaces
Variants

std::chrono::year_month_weekday:: year_month_weekday

From cppreference.net
year_month_weekday ( ) = default ;
(1) (seit C++20)
constexpr year_month_weekday ( const std:: chrono :: year & y,

const std:: chrono :: month & m,

const std:: chrono :: weekday_indexed & wdi ) noexcept ;
(2) (seit C++20)
constexpr year_month_weekday ( const std:: chrono :: sys_days & dp ) noexcept ;
(3) (seit C++20)
constexpr explicit year_month_weekday ( const std:: chrono :: local_days & dp ) noexcept ;
(4) (seit C++20)

Konstruiert ein year_month_weekday Objekt.

1) Der Standardkonstruktor lässt die Felder uninitialisiert.
2) Konstruiert ein year_month_weekday -Objekt, das das Jahr y , den Monat m , den Wochentag wdi. weekday ( ) und den Wochentagsindex wdi. index ( ) speichert.
3) Konstruiert ein year_month_weekday -Objekt, das dem durch dp repräsentierten Datum entspricht. Für jedes year_month_weekday -Objekt, das ein gültiges Datum speichert, ergibt die Konvertierung in sys_days und zurück denselben Wert. Dieser Konstruktor definiert eine implizite Konvertierung von sys_days zu year_month_weekday .
4) Konstruiert ein year_month_weekday -Objekt, das dem durch dp repräsentierten Datum entspricht. Entspricht year_month_weekday ( sys_days ( dp. time_since_epoch ( ) ) ) .

Hinweise

Ein year_month_weekday kann auch erstellt werden, indem einer der partiellen Datumstypen std::chrono::year_month und std::chrono::month_weekday mit der fehlenden Komponente (indizierter Wochentag bzw. Jahr) mittels operator/ kombiniert wird.

Siehe auch

(C++20)
Konventionelle Syntax zur Erstellung von Gregorianischen Kalenderdaten
(Funktion)