Package com.globalmentor.text
Enum W3CDateFormat.Style
- All Implemented Interfaces:
Serializable
,Comparable<W3CDateFormat.Style>
- Enclosing class:
- W3CDateFormat
The specific style of W3C date format.
-
Enum Constant Summary
Enum ConstantDescriptionPattern for complete date: YYYY-MM-DD (e.g.Pattern for complete date plus hours and minutes: YYYY-MM-DDThh:mmTZD (e.g.Pattern for complete date plus hours, minutes and seconds: YYYY-MM-DDThh:mm:ssTZD (e.g.Pattern for complete date plus hours, minutes, seconds and a decimal fraction of a second: YYYY-MM-DDThh:mm:ss.sTZD (e.g.Style for year: YYYY (e.g.Pattern for year and month: YYYY-MM (e.g. -
Method Summary
Modifier and TypeMethodDescriptionstatic W3CDateFormat.Style
Returns the enum constant of this type with the specified name.static W3CDateFormat.Style[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
YEAR
Style for year: YYYY (e.g. 1997) -
YEAR_MONTH
Pattern for year and month: YYYY-MM (e.g. 1997-07) -
DATE
Pattern for complete date: YYYY-MM-DD (e.g. 1997-07-16) -
DATE_HOURS_MINUTES
Pattern for complete date plus hours and minutes: YYYY-MM-DDThh:mmTZD (e.g. 1997-07-16T19:20+01:00) -
DATE_HOURS_MINUTES_SECONDS
Pattern for complete date plus hours, minutes and seconds: YYYY-MM-DDThh:mm:ssTZD (e.g. 1997-07-16T19:20:30+01:00) -
DATE_TIME
Pattern for complete date plus hours, minutes, seconds and a decimal fraction of a second: YYYY-MM-DDThh:mm:ss.sTZD (e.g. 1997-07-16T19:20:30.45+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
-