public static enum CDateTime.STYLE extends Enum<CDateTime.STYLE>
DateTimeFormatter| Enum Constant and Description |
|---|
D_M_Y_ONLY
A short date/time format.
|
ISO_OFFSET
The ISO 8601 time format.
|
LEGACY_MEDIUM_MEDIUM
A legacy time format, corresponding to an old date format of MEDIUM and time format of MEDIUM
in the use of the old DateFormat class.
|
YMDHMS_DASHED
A year-month-day-hour-min-second format useful for appending to file/folder names for
timestamping purposes.
|
YMDHMS_DOTTED
A year-month-day-hour-min-second format useful for appending to file/folder names for
timestamping purposes.
|
ZONED_TIMESTAMP
A human-readable date/time format with an alphabetic time zone..
|
ZONED_WEEKDAY_TIMESTAMP
A numeric-zoned format that includes the weekday.
|
| Modifier and Type | Field and Description |
|---|---|
private DateTimeFormatter |
formatter |
private String |
pattern |
| Modifier and Type | Method and Description |
|---|---|
static CDateTime.STYLE |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CDateTime.STYLE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CDateTime.STYLE ZONED_TIMESTAMP
public static final CDateTime.STYLE ISO_OFFSET
public static final CDateTime.STYLE ZONED_WEEKDAY_TIMESTAMP
public static final CDateTime.STYLE D_M_Y_ONLY
public static final CDateTime.STYLE YMDHMS_DOTTED
public static final CDateTime.STYLE YMDHMS_DASHED
public static final CDateTime.STYLE LEGACY_MEDIUM_MEDIUM
public static CDateTime.STYLE[] values()
for (CDateTime.STYLE c : CDateTime.STYLE.values()) System.out.println(c);
public static CDateTime.STYLE 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