public static enum DateTimeFormat.ISO extends Enum<DateTimeFormat.ISO>
Enum Constant and Description |
---|
DATE
The most common ISO Date Format
yyyy-MM-dd — for example,
"2000-10-31". |
DATE_TIME
The most common ISO Date Time Format
yyyy-MM-dd'T'HH:mm:ss.SSSXXX
— for example, "2000-10-31T01:30:00.000-05:00". |
NONE
Indicates that no ISO-based format pattern should be applied.
|
TIME
The most common ISO Time Format
HH:mm:ss.SSSXXX — for example,
"01:30:00.000-05:00". |
Modifier and Type | Method and Description |
---|---|
static DateTimeFormat.ISO |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateTimeFormat.ISO[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTimeFormat.ISO DATE
yyyy-MM-dd
— for example,
"2000-10-31".public static final DateTimeFormat.ISO TIME
HH:mm:ss.SSSXXX
— for example,
"01:30:00.000-05:00".public static final DateTimeFormat.ISO DATE_TIME
yyyy-MM-dd'T'HH:mm:ss.SSSXXX
— for example, "2000-10-31T01:30:00.000-05:00".public static final DateTimeFormat.ISO NONE
public static DateTimeFormat.ISO[] values()
for (DateTimeFormat.ISO c : DateTimeFormat.ISO.values()) System.out.println(c);
public static DateTimeFormat.ISO valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null