std::chrono::year_month:: year_month
From cppreference.net
<
cpp
|
chrono
|
year month
C++
Date and time library
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::chrono::year_month
| Member functions | ||||
|
year_month::year_month
|
||||
| Nonmember functions | ||||
| Helper classes | ||||
|
(C++26)
|
|
year_month
(
)
=
default
;
|
(1) | (seit C++20) |
|
constexpr
year_month
(
const
std::
chrono
::
year
&
y,
const std:: chrono :: month & m ) noexcept ; |
(2) | (seit C++20) |
Konstruiert ein
year_month
Objekt.
1)
Der Standardkonstruktor lässt das Jahr und den Monat uninitialisiert.
2)
Konstruiert ein
year_month
-Objekt, das das Jahr
y
und den Monat
m
speichert.
Hinweise
Eine bequemere Möglichkeit, ein
year_month
zu konstruieren, ist mit
operator
/
, z.B.,
2007y
/
std::
chrono
::
April
.
Siehe auch
|
(C++20)
|
Konventionelle Syntax zur Erstellung von Gregorianischen Kalenderdaten
(Funktion) |