public enum DatePart extends Enum<DatePart>
Enum Constant and Description |
---|
CENTURY
Deprecated.
- 3.11 - [#2132] Support for this type is still experimental
|
DAY
The day.
|
DAY_OF_WEEK
Deprecated.
- 3.11 - [#2132] Support for this type is still experimental
|
DAY_OF_YEAR
Deprecated.
- 3.11 - [#2132] Support for this type is still experimental
|
DECADE
Deprecated.
- 3.11 - [#2132] Support for this type is still experimental
|
EPOCH
Deprecated.
- 3.11 - [#2132] Support for this type is still experimental
|
HOUR
The hour.
|
MICROSECOND
Deprecated.
- 3.11 - [#2132] Support for this type is still experimental
|
MILLENNIUM
Deprecated.
- 3.11 - [#2132] Support for this type is still experimental
|
MILLISECOND
Deprecated.
- 3.11 - [#2132] Support for this type is still experimental
|
MINUTE
The minute.
|
MONTH
The month.
|
NANOSECOND
Deprecated.
- 3.11 - [#2132] Support for this type is still experimental
|
QUARTER
Deprecated.
- 3.11 - [#2132] Support for this type is still experimental
|
SECOND
The second.
|
TIMEZONE
Deprecated.
- 3.11 - [#2132] Support for this type is still experimental
|
TIMEZONE_HOUR
Deprecated.
- 3.11 - [#2132] Support for this type is still experimental
|
TIMEZONE_MINUTE
Deprecated.
- 3.11 - [#2132] Support for this type is still experimental
|
WEEK
Deprecated.
- 3.11 - [#2132] Support for this type is still experimental
|
YEAR
The year.
|
Modifier and Type | Method and Description |
---|---|
Keyword |
toKeyword() |
String |
toSQL() |
static DatePart |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatePart[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Support public static final DatePart YEAR
ChronoField.YEAR
semantics.@Support public static final DatePart MONTH
ChronoField.MONTH_OF_YEAR
semantics.@Support public static final DatePart DAY
ChronoField.DAY_OF_MONTH
semantics.@Support public static final DatePart HOUR
ChronoField.HOUR_OF_DAY
semantics.@Support public static final DatePart MINUTE
ChronoField.MINUTE_OF_HOUR
semantics.@Support public static final DatePart SECOND
ChronoField.SECOND_OF_MINUTE
semantics.@Support(value=SQLSERVER) @Deprecated public static final DatePart MILLISECOND
@Support(value=SQLSERVER) @Deprecated public static final DatePart MICROSECOND
@Support(value=SQLSERVER) @Deprecated public static final DatePart NANOSECOND
@Support(value={AURORA_POSTGRES,POSTGRES}) @Deprecated public static final DatePart MILLENNIUM
@Support(value={AURORA_POSTGRES,POSTGRES}) @Deprecated public static final DatePart CENTURY
@Support(value={AURORA_POSTGRES,POSTGRES}) @Deprecated public static final DatePart DECADE
@Support(value={AURORA_POSTGRES,POSTGRES}) @Deprecated public static final DatePart EPOCH
@Support(value={AURORA_POSTGRES,POSTGRES}) @Deprecated public static final DatePart QUARTER
@Support(value={AURORA_POSTGRES,POSTGRES}) @Deprecated public static final DatePart WEEK
@Support(value={AURORA_POSTGRES,POSTGRES}) @Deprecated public static final DatePart DAY_OF_YEAR
ChronoField.DAY_OF_YEAR
.@Support(value={AURORA_POSTGRES,POSTGRES}) @Deprecated public static final DatePart DAY_OF_WEEK
ChronoField.DAY_OF_WEEK
.@Support(value={AURORA_POSTGRES,POSTGRES}) @Deprecated public static final DatePart TIMEZONE
ChronoField.OFFSET_SECONDS
.@Support(value={AURORA_POSTGRES,POSTGRES}) @Deprecated public static final DatePart TIMEZONE_HOUR
@Support(value={AURORA_POSTGRES,POSTGRES}) @Deprecated public static final DatePart TIMEZONE_MINUTE
public static DatePart[] values()
for (DatePart c : DatePart.values()) System.out.println(c);
public static DatePart 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 final String toSQL()
public final Keyword toKeyword()
Copyright © 2019. All rights reserved.