Enum Class IDateTimeData.DateTimeFormat
- All Implemented Interfaces:
Serializable
,Comparable<IDateTimeData.DateTimeFormat>
,Constable
- Enclosing interface:
- IDateTimeData
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFull dateFull date with weekdayAbbreviated dateAbbreviated date with abbreviated weekdayShort dateFull date and time with abbreviated named offsetFull date and time with abbreviated named offset with secondsFull date and time with weekday and full named offsetFull date and time with weekday and full named offset with secondsAbbreviated date & timeAbbreviated date & time with secondsAbbreviated date & time with abbreviated weekdayShort date & timeShort date & time with secondsTimeTime with seconds and full named offsetTime with secondsTime with seconds and abbreviated named offset -
Method Summary
Modifier and TypeMethodDescriptionstatic IDateTimeData.DateTimeFormat
Returns the enum constant of this class with the specified name.static IDateTimeData.DateTimeFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DATE_SHORT
Short dateExample: 11/2/2018 (US) or 2/11/2018 (UK)
-
DATE_MED
Abbreviated dateExample: Nov 2, 2018
-
DATE_MED_WITH_WEEKDAY
Abbreviated date with abbreviated weekdayExample: Fri, Nov 2, 2018
-
DATE_FULL
Full dateExample: November 2, 2018
-
DATE_HUGE
Full date with weekdayExample: Friday, November 2, 2018
-
TIME_SIMPLE
TimeExample: 14:30 (24-hour clock) or 2:30 PM (12-hour clock)
-
TIME_WITH_SECONDS
Time with secondsExample: 14:30:15 (24-hour clock) or 2:30:15 PM (12-hour clock)
-
TIME_WITH_SHORT_OFFSET
Time with seconds and abbreviated named offsetExample: 14:30:15 GMT+1
-
TIME_WITH_LONG_OFFSET
Time with seconds and full named offsetExample: 14:30:15 Central European Time
-
DATETIME_SHORT
Short date & timeExample: 11/2/2018, 14:30 (US) or 2/11/2018, 14:30 (UK)
-
DATETIME_SHORT_WITH_SECONDS
Short date & time with secondsExample: 11/2/2018, 14:30:15 (US) or 2/11/2018, 14:30:15 (UK)
-
DATETIME_MED
Abbreviated date & timeExample: Nov 2, 2018, 14:30
-
DATETIME_MED_WITH_SECONDS
Abbreviated date & time with secondsExample: Nov 2, 2018, 14:30:15
-
DATETIME_MED_WITH_WEEKDAY
Abbreviated date & time with abbreviated weekdayExample: Fri, Nov 2, 2018, 14:30
-
DATETIME_FULL
Full date and time with abbreviated named offsetExample: November 2, 2018, 14:30 GMT+1
-
DATETIME_FULL_WITH_SECONDS
Full date and time with abbreviated named offset with secondsExample: November 2, 2018, 14:30:15 GMT+1
-
DATETIME_HUGE
Full date and time with weekday and full named offsetExample: Friday, November 2, 2018, 14:30 Central European Time
-
DATETIME_HUGE_WITH_SECONDS
Full date and time with weekday and full named offset with secondsExample: Friday, November 2, 2018, 14:30:15 Central European Time
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-