public enum DateTimeFormat extends java.lang.Enum<DateTimeFormat>
Enum Constant and Description |
---|
CustomDateTime
Indicates that the number should be formatted as a DateTime value according to a custom set string.
|
FullDateTime
Indicates that the number should be formatted as a DateTime value with a full date pattern.
|
LongDate
Indicates that the number should be formatted as a DateTime value with a long date pattern.
|
LongTime
Indicates that the number should be formatted as a DateTime value with a long time pattern.
|
MonthDateTime
Indicates that the number should be formatted as a DateTime value with a month day pattern.
|
None
The DateTime value is not formatted
|
ShortDate
Indicates that the number should be formatted as a DateTime value with a short date pattern.
|
ShortTime
Indicates that the number should be formatted as a DateTime value with a short time pattern.
|
YearDateTime
Indicates that the number should be formatted as a DateTime value with a year month date pattern.
|
Modifier and Type | Method and Description |
---|---|
static DateTimeFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DateTimeFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTimeFormat CustomDateTime
public static final DateTimeFormat FullDateTime
public static final DateTimeFormat LongDate
public static final DateTimeFormat LongTime
public static final DateTimeFormat MonthDateTime
public static final DateTimeFormat None
public static final DateTimeFormat ShortDate
public static final DateTimeFormat ShortTime
public static final DateTimeFormat YearDateTime
public static DateTimeFormat[] values()
for (DateTimeFormat c : DateTimeFormat.values()) System.out.println(c);
public static DateTimeFormat valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null