public static enum DateTimeUtilities.DateTimeType extends java.lang.Enum<DateTimeUtilities.DateTimeType>
Enum Constant and Description |
---|
DATE |
DATE_WITH_LOCAL_TIME |
DATE_WITH_LOCAL_TIME_AND_TIME_ZONE |
DATE_WITH_UTC_TIME |
Modifier and Type | Method and Description |
---|---|
abstract java.time.temporal.Temporal |
from(java.time.temporal.Temporal temporal)
Convert temporal to new DateTimeType - for all types, but DATE_WITH_LOCAL_TIME_AND_TIME_ZONE
|
abstract java.time.temporal.Temporal |
from(java.time.temporal.Temporal temporal,
java.time.ZoneId zone)
Convert temporal to new DateTimeType - for DATE_WITH_LOCAL_TIME_AND_TIME_ZONE
|
java.lang.String |
getPattern() |
static DateTimeUtilities.DateTimeType |
of(java.time.temporal.Temporal temporal)
Find DateTimeType of Temporal parameter temporal
|
static DateTimeUtilities.DateTimeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DateTimeUtilities.DateTimeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTimeUtilities.DateTimeType DATE
public static final DateTimeUtilities.DateTimeType DATE_WITH_LOCAL_TIME
public static final DateTimeUtilities.DateTimeType DATE_WITH_UTC_TIME
public static final DateTimeUtilities.DateTimeType DATE_WITH_LOCAL_TIME_AND_TIME_ZONE
public static DateTimeUtilities.DateTimeType[] values()
for (DateTimeUtilities.DateTimeType c : DateTimeUtilities.DateTimeType.values()) System.out.println(c);
public static DateTimeUtilities.DateTimeType 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 nullpublic java.lang.String getPattern()
public static DateTimeUtilities.DateTimeType of(java.time.temporal.Temporal temporal)
Find DateTimeType of Temporal parameter temporal
public abstract java.time.temporal.Temporal from(java.time.temporal.Temporal temporal, java.time.ZoneId zone)
Convert temporal to new DateTimeType - for DATE_WITH_LOCAL_TIME_AND_TIME_ZONE
public abstract java.time.temporal.Temporal from(java.time.temporal.Temporal temporal)
Convert temporal to new DateTimeType - for all types, but DATE_WITH_LOCAL_TIME_AND_TIME_ZONE