Class DateFormatKind
- class ooodev.utils.kind.date_format_kind.DateFormatKind(value)[source]
Specifies the format of the displayed date.
- static from_str(s)[source]
Gets an
DateFormatKind
instance from string.- Parameters:
s (str) – String that represents the name of an enum Name.
- Raises:
ValueError – If input string is empty.
AttributeError – If unable to get
DateFormatKind
instance.
- Returns:
Enum instance.
- Return type:
- DD_MM_YY = 4
DD/MM/YY
- DD_MM_YYYY = 7
DD/MM/YYYY
- DIN_5008_YYYY_MM_DD = 11
YYYY-MM-DD
- DIN_5008_YY_MM_DD = 10
YY-MM-DD
- MM_DD_YY = 5
MM/DD/YY
- MM_DD_YYYY = 8
MM/DD/YYYY
- SYSTEM_LONG = 3
Standard (long)
- SYSTEM_SHORT = 0
Standard (short)
- SYSTEM_SHORT_YY = 1
Standard (short YY)
- SYSTEM_SHORT_YYYY = 2
Standard (short YYYY)
- YYYY_MM_DD = 9
YYYY/MM/DD
- YY_MM_DD = 6
YY/MM/DD