public enum TimestampFormat extends java.lang.Enum<TimestampFormat>
| Enum Constant and Description |
|---|
ISO_8601
In either
DateUtils.ISO8601_DATE_PATTERN or
DateUtils.ALTERNATE_ISO8601_DATE_PATTERN pattern. |
RFC_822
In
DateUtils.RFC822_DATE_PATTERN pattern. |
UNIX_TIMESTAMP
In epoch seconds.
|
| Modifier and Type | Method and Description |
|---|---|
static TimestampFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimestampFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimestampFormat UNIX_TIMESTAMP
public static final TimestampFormat ISO_8601
DateUtils.ISO8601_DATE_PATTERN or
DateUtils.ALTERNATE_ISO8601_DATE_PATTERN pattern.public static final TimestampFormat RFC_822
DateUtils.RFC822_DATE_PATTERN pattern.public static TimestampFormat[] values()
for (TimestampFormat c : TimestampFormat.values()) System.out.println(c);
public static TimestampFormat 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