Package app.babylon.table.transform
Enum Class DateFormat
- All Implemented Interfaces:
Serializable,Comparable<DateFormat>,Constable
Supported date token orderings and special date encodings.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDay-month-year order.Excel serial date without time.Excel serial date/time value.Month-day-year order.Unknown or ambiguous format.Year-month-day order. -
Method Summary
Modifier and TypeMethodDescriptionstatic DateFormatParses a named date format such asDMY,MDY, orYMD.static DateFormatReturns the enum constant of this class with the specified name.static DateFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DMY
Day-month-year order. -
YMD
Year-month-day order. -
MDY
Month-day-year order. -
ExcelLocalDate
Excel serial date without time. -
ExcelLocalDateTime
Excel serial date/time value. -
Unknown
Unknown or ambiguous format.
-
-
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
-
parse
Parses a named date format such asDMY,MDY, orYMD.- Parameters:
s- source text- Returns:
- parsed date format or
null
-