- All Implemented Interfaces:
OnixCodelist
,Serializable
,Comparable<DateFormats>
,Constable
Enum
that corresponds to ONIX Codelist 55
Description: Date format
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface com.tectonica.jonix.common.OnixCodelist
OnixCodelist.Pair
-
Enum Constant Summary
Enum ConstantDescriptionFor complex, approximate or uncertain dates, or dates BCE.For complex, approximate or uncertain dates (Hijri calendar), text would usually be in Arabic script.Year (default for some dates)Year (Hijri calendar)Year and monthYear and month (Hijri calendar)Common Era year, month and day (default for most dates)Year month day (Hijri calendar)Exact time.Exact time.Spread of exact datesSpread of monthsYear and quarter (Q = 1, 2, 3, 4, with 1 = Jan to Mar)Spread of quartersYear and season (S = 1, 2, 3, 4, with 1 = 'Spring')Spread of seasonsYear and week numberSpread of week numbersSpread of years -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DateFormats
static Optional<DateFormats>
byCodeOptional
(String code) static String
codeToDesciption
(String code) getCode()
static DateFormats
Returns the enum constant of this class with the specified name.static DateFormats[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.tectonica.jonix.common.OnixCodelist
pair
-
Enum Constant Details
-
YYYYMMDD
Common Era year, month and day (default for most dates) -
YYYYMM
Year and month -
YYYYWW
Year and week number -
YYYYQ
Year and quarter (Q = 1, 2, 3, 4, with 1 = Jan to Mar) -
YYYYS
Year and season (S = 1, 2, 3, 4, with 1 = 'Spring') -
YYYY
Year (default for some dates) -
YYYYMMDDYYYYMMDD
Spread of exact dates -
YYYYMMYYYYMM
Spread of months -
YYYYWWYYYYWW
Spread of week numbers -
YYYYQYYYYQ
Spread of quarters -
YYYYSYYYYS
Spread of seasons -
YYYYYYYY
Spread of years -
Text_string
For complex, approximate or uncertain dates, or dates BCE. Suggested maximum length 100 characters -
YYYYMMDDThhmm
Exact time. Use ONLY when exact times with hour/minute precision are relevant. By default, time is local. Alternatively, the time may be suffixed with an optional 'Z' for UTC times, or with '+' or '-' and an hhmm timezone offset from UTC. Times without a timezone are 'rolling' local times, times qualified with a timezone (using Z, + or -) specify a particular instant in time -
YYYYMMDDThhmmss
Exact time. Use ONLY when exact times with second precision are relevant. By default, time is local. Alternatively, the time may be suffixed with an optional 'Z' for UTC times, or with '+' or '-' and an hhmm timezone offset from UTC. Times without a timezone are 'rolling' local times, times qualified with a timezone (using Z, + or -) specify a particular instant in time -
YYYYMMDD_H
Year month day (Hijri calendar) -
YYYYMM_H
Year and month (Hijri calendar) -
YYYY_H
Year (Hijri calendar) -
Text_string_H
For complex, approximate or uncertain dates (Hijri calendar), text would usually be in Arabic script. Suggested maximum length 100 characters
-
-
Field Details
-
code
-
description
-
-
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
-
getCode
- Specified by:
getCode
in interfaceOnixCodelist
-
getDescription
- Specified by:
getDescription
in interfaceOnixCodelist
-
byCode
-
byCodeOptional
-
codeToDesciption
-