public static enum TimestampFormatTrait.Format extends Enum<TimestampFormatTrait.Format>
Enum Constant and Description |
---|
ISO_8601
See
DateUtils#parseIso8601Date(String) |
RFC_822
See
DateUtils#parseRfc1123Date(String) |
UNIX_TIMESTAMP
See
DateUtils#parseUnixTimestampInstant(String) |
UNIX_TIMESTAMP_MILLIS
See
DateUtils#parseUnixTimestampMillisInstant(String) . |
Modifier and Type | Method and Description |
---|---|
static TimestampFormatTrait.Format |
fromString(String strFormat)
Creates a timestamp format enum from the string defined in the model.
|
static TimestampFormatTrait.Format |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimestampFormatTrait.Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimestampFormatTrait.Format ISO_8601
DateUtils#parseIso8601Date(String)
public static final TimestampFormatTrait.Format RFC_822
DateUtils#parseRfc1123Date(String)
public static final TimestampFormatTrait.Format UNIX_TIMESTAMP
DateUtils#parseUnixTimestampInstant(String)
public static final TimestampFormatTrait.Format UNIX_TIMESTAMP_MILLIS
DateUtils#parseUnixTimestampMillisInstant(String)
. This is only used by the CBOR protocol currently.public static TimestampFormatTrait.Format[] values()
for (TimestampFormatTrait.Format c : TimestampFormatTrait.Format.values()) System.out.println(c);
public static TimestampFormatTrait.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 nullpublic static TimestampFormatTrait.Format fromString(String strFormat)
strFormat
- String format.Copyright © 2022. All rights reserved.