Enum EPresetTemporalFormatStyle
- All Implemented Interfaces:
Serializable, Comparable<EPresetTemporalFormatStyle>
Presets styles for formatting temporal objects like dates and times, see
IPresetTemporalFormatter.- Since:
- 8.4.0
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFull date format, e.g.Full date with full time format, e.g.Full date with long time format, e.g.Full date with medium time format, e.g.Full date with short time format, e.g.Long date format, e.g.Long date with full time format, e.g.Long date with long time format, e.g.Long date with medium time format, e.g.Long date with short time format, e.g.Medium date format, e.g.Medium date with full time format, e.g.Medium date with long time format, e.g.Medium date with medium time format, e.g.Medium date with short time format, e.g.Short date format, e.g. "01/01, 2020"Short date with full time format, e.g. "01/01, 2020 12:00:00 PM GMT+01:00"Short date with long time format, e.g. "01/01, 2020 12:00:00 PM GMT+1"Short date with medium time format, e.g. "01/01, 2020 12:00:00 PM"Short date with short time format, e.g. "01/01, 2020 12:00 PM"Full date and time format, e.g.Long date and time format, e.g.Medium date and time format, e.g.Short date and time format, e.g. "01/01, 2020 12:00 PM"Full time format, e.g. "12:00:00 PM GMT+01:00"Long time format, e.g. "12:00:00 PM GMT+1"Medium time format, e.g. "12:00:00 PM"Short time format, e.g. "12:00 PM" -
Method Summary
Modifier and TypeMethodDescriptionstatic EPresetTemporalFormatStyleReturns the enum constant of this type with the specified name.static EPresetTemporalFormatStyle[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DATE_SHORT
Short date format, e.g. "01/01, 2020" -
DATE_MEDIUM
Medium date format, e.g. "Jan 1st, 2020" -
DATE_LONG
Long date format, e.g. "January 1st, 2020" -
DATE_FULL
Full date format, e.g. "Wednesday, January 1st, 2020" -
TIME_SHORT
Short time format, e.g. "12:00 PM" -
TIME_MEDIUM
Medium time format, e.g. "12:00:00 PM" -
TIME_LONG
Long time format, e.g. "12:00:00 PM GMT+1" -
TIME_FULL
Full time format, e.g. "12:00:00 PM GMT+01:00" -
DATE_TIME_SHORT
Short date and time format, e.g. "01/01, 2020 12:00 PM" -
DATE_TIME_MEDIUM
Medium date and time format, e.g. "Jan 1st, 2020 12:00 PM" -
DATE_TIME_LONG
Long date and time format, e.g. "January 1st, 2020 12:00:00 PM" -
DATE_TIME_FULL
Full date and time format, e.g. "Wednesday, January 1st, 2020 12:00:00 PM GMT+01:00" -
DATE_SHORT_TIME_SHORT
Short date with short time format, e.g. "01/01, 2020 12:00 PM" -
DATE_SHORT_TIME_MEDIUM
Short date with medium time format, e.g. "01/01, 2020 12:00:00 PM" -
DATE_SHORT_TIME_LONG
Short date with long time format, e.g. "01/01, 2020 12:00:00 PM GMT+1" -
DATE_SHORT_TIME_FULL
Short date with full time format, e.g. "01/01, 2020 12:00:00 PM GMT+01:00" -
DATE_MEDIUM_TIME_SHORT
Medium date with short time format, e.g. "Jan 1st, 2020 12:00 PM" -
DATE_MEDIUM_TIME_MEDIUM
Medium date with medium time format, e.g. "Jan 1st, 2020 12:00:00 PM" -
DATE_MEDIUM_TIME_LONG
Medium date with long time format, e.g. "Jan 1st, 2020 12:00:00 PM GMT+1" -
DATE_MEDIUM_TIME_FULL
Medium date with full time format, e.g. "Jan 1st, 2020 12:00:00 PM GMT+01:00" -
DATE_LONG_TIME_SHORT
Long date with short time format, e.g. "January 1st, 2020 12:00 PM" -
DATE_LONG_TIME_MEDIUM
Long date with medium time format, e.g. "January 1st, 2020 12:00:00 PM" -
DATE_LONG_TIME_LONG
Long date with long time format, e.g. "January 1st, 2020 12:00:00 PM GMT+1" -
DATE_LONG_TIME_FULL
Long date with full time format, e.g. "January 1st, 2020 12:00:00 PM GMT+01:00" -
DATE_FULL_TIME_SHORT
Full date with short time format, e.g. "Wednesday, January 1st, 2020 12:00 PM" -
DATE_FULL_TIME_MEDIUM
Full date with medium time format, e.g. "Wednesday, January 1st, 2020 12:00:00 PM" -
DATE_FULL_TIME_LONG
Full date with long time format, e.g. "Wednesday, January 1st, 2020 12:00:00 PM GMT+1" -
DATE_FULL_TIME_FULL
Full date with full time format, e.g. "Wednesday, January 1st, 2020 12:00:00 PM GMT+01:00"
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-