std::chrono:: month
|
Definiert in Header
<chrono>
|
||
|
class
month
;
|
(seit C++20) | |
|
inline
constexpr
std
::
chrono
::
month
January
{
1
}
;
|
(seit C++20) | |
|
inline
constexpr
std
::
chrono
::
month
February
{
2
}
;
|
(seit C++20) | |
|
inline
constexpr
std
::
chrono
::
month
March
{
3
}
;
|
(seit C++20) | |
|
inline
constexpr
std
::
chrono
::
month
April
{
4
}
;
|
(seit C++20) | |
|
inline
constexpr
std
::
chrono
::
month
May
{
5
}
;
|
(seit C++20) | |
|
inline
constexpr
std
::
chrono
::
month
June
{
6
}
;
|
(seit C++20) | |
|
inline
constexpr
std
::
chrono
::
month
July
{
7
}
;
|
(seit C++20) | |
|
inline
constexpr
std
::
chrono
::
month
August
{
8
}
;
|
(seit C++20) | |
|
inline
constexpr
std
::
chrono
::
month
September
{
9
}
;
|
(seit C++20) | |
|
inline
constexpr
std
::
chrono
::
month
October
{
10
}
;
|
(seit C++20) | |
|
inline
constexpr
std
::
chrono
::
month
November
{
11
}
;
|
(seit C++20) | |
|
inline
constexpr
std
::
chrono
::
month
Dezember
{
12
}
;
|
(seit C++20) | |
Die Klasse
month
repräsentiert einen Monat in einem Jahr. Ihr normaler Bereich ist
[
1
,
12
]
, aber sie kann jede Zahl in
[
0
,
255
]
enthalten. Zwölf benannte Konstanten sind im
std::chrono
-Namespace für die zwölf Monate des Jahres vordefiniert.
month
ist ein
TriviallyCopyable
StandardLayoutType
.
Memberfunktionen
konstruiert einen
month
(öffentliche Elementfunktion) |
|
|
erhöht oder verringert den Monat
(öffentliche Elementfunktion) |
|
|
addiert oder subtrahiert eine Anzahl von Monaten
(öffentliche Elementfunktion) |
|
|
ruft den gespeicherten Monatswert ab
(öffentliche Elementfunktion) |
|
|
prüft, ob der gespeicherte Monatswert im normalen Bereich liegt
(öffentliche Elementfunktion) |
Nicht-Member-Funktionen
|
(C++20)
|
vergleicht zwei
month
-Werte
(Funktion) |
|
(C++20)
|
führt arithmetische Operationen auf
month
s aus
(Funktion) |
|
(C++20)
|
gibt einen
month
in einen Stream aus
(Funktions-Template) |
|
(C++20)
|
parst einen
month
aus einem Stream gemäß dem angegebenen Format
(Funktions-Template) |
Hilfsklassen
Formatierungsunterstützung für
month
(Klassen-Template-Spezialisierung) |
|
|
(C++26)
|
Hash-Unterstützung für
std::chrono::month
(Klassen-Template-Spezialisierung) |