public static enum CalendarUtils.Format extends Enum<CalendarUtils.Format>
Enum Constant and Description |
---|
FULL_D
Transform to
DateFormat.FULL date strings. |
FULL_DT
Transform to
DateFormat.FULL date-time strings. |
FULL_T
Transform to
DateFormat.FULL time strings. |
ISO8601_D
ISO8601 date only.
|
ISO8601_DT
Transform to ISO8601 date-time strings.
|
ISO8601_DTL
Transform to ISO8601 date-time-local strings.
|
ISO8601_DTP
Same as
ISO8601_DT except serializes to millisecond precision. |
ISO8601_DTPZ
Same as
ISO8601_DTZ except serializes to millisecond precision. |
ISO8601_DTZ
Same as
ISO8601_DT , except always serializes in GMT. |
LONG_D
Transform to
DateFormat.LONG date strings. |
LONG_DT
Transform to
DateFormat.LONG date-time strings. |
LONG_T
Transform to
DateFormat.LONG time strings. |
MEDIUM_D
Transform to
DateFormat.MEDIUM date strings. |
MEDIUM_DT
Transform to
DateFormat.MEDIUM date-time strings. |
MEDIUM_T
Transform to
DateFormat.MEDIUM time strings. |
RFC2822_D
Transform to RFC2822 date strings.
|
RFC2822_DT
Transform to RFC2822 date-time strings.
|
RFC2822_DTZ
Same as
RFC2822_DT , except always serializes in GMT. |
SHORT_D
Transform to
DateFormat.SHORT date strings. |
SHORT_DT
Transform to
DateFormat.SHORT date-time strings. |
SHORT_T
Transform to
DateFormat.SHORT time strings. |
SIMPLE_D
Transform to simple
|
SIMPLE_DT
Transform to simple
|
SIMPLE_T
Transform to simple
|
TO_STRING
Transform to
Strings using the Date.toString() method. |
Modifier and Type | Method and Description |
---|---|
static CalendarUtils.Format |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CalendarUtils.Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CalendarUtils.Format ISO8601_DTL
public static final CalendarUtils.Format ISO8601_DT
public static final CalendarUtils.Format ISO8601_DTZ
public static final CalendarUtils.Format ISO8601_DTP
ISO8601_DT
except serializes to millisecond precision.
public static final CalendarUtils.Format ISO8601_DTPZ
ISO8601_DTZ
except serializes to millisecond precision.
public static final CalendarUtils.Format ISO8601_D
public static final CalendarUtils.Format TO_STRING
Strings
using the Date.toString()
method.
public static final CalendarUtils.Format RFC2822_DT
public static final CalendarUtils.Format RFC2822_DTZ
RFC2822_DT
, except always serializes in GMT.
public static final CalendarUtils.Format RFC2822_D
public static final CalendarUtils.Format SIMPLE_DT
public static final CalendarUtils.Format SIMPLE_D
public static final CalendarUtils.Format SIMPLE_T
public static final CalendarUtils.Format FULL_D
DateFormat.FULL
date strings.
public static final CalendarUtils.Format LONG_D
DateFormat.LONG
date strings.
public static final CalendarUtils.Format MEDIUM_D
DateFormat.MEDIUM
date strings.
public static final CalendarUtils.Format SHORT_D
DateFormat.SHORT
date strings.
public static final CalendarUtils.Format FULL_T
DateFormat.FULL
time strings.
public static final CalendarUtils.Format LONG_T
DateFormat.LONG
time strings.
public static final CalendarUtils.Format MEDIUM_T
DateFormat.MEDIUM
time strings.
public static final CalendarUtils.Format SHORT_T
DateFormat.SHORT
time strings.
public static final CalendarUtils.Format FULL_DT
DateFormat.FULL
date-time strings.
public static final CalendarUtils.Format LONG_DT
DateFormat.LONG
date-time strings.
public static final CalendarUtils.Format MEDIUM_DT
DateFormat.MEDIUM
date-time strings.
public static final CalendarUtils.Format SHORT_DT
DateFormat.SHORT
date-time strings.
public static CalendarUtils.Format[] values()
for (CalendarUtils.Format c : CalendarUtils.Format.values()) System.out.println(c);
public static CalendarUtils.Format 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 nullCopyright © 2018 Apache. All rights reserved.