Enum Class DateTimeExtractField
- All Implemented Interfaces:
Serializable, Comparable<DateTimeExtractField>, Constable
Type identifiers used by EXTRACT function
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMeans the calendar day of the month, numbered from 1Means the hour of the day in 24-hour time, numbered from 0 to 23Mans the minute of the hour, numbered from 0 to 59Means the calendar month of the year, numbered from 1Means the calendar quarter, numbered from 1 to 4Means the second of the minute, numbered from 0 to 59, including a fractional part representing fractions of a second.Means the ISO-8601 week numberMeans the calendar year -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.The field of aTemporalthat holds the value of this field.static DateTimeExtractFieldReturns the enum constant of this class with the specified name.static DateTimeExtractField[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
YEAR
Means the calendar year -
QUARTER
Means the calendar quarter, numbered from 1 to 4 -
MONTH
Means the calendar month of the year, numbered from 1 -
WEEK
Means the ISO-8601 week number -
DAY
Means the calendar day of the month, numbered from 1 -
HOUR
Means the hour of the day in 24-hour time, numbered from 0 to 23 -
MINUTE
Mans the minute of the hour, numbered from 0 to 59 -
SECOND
Means the second of the minute, numbered from 0 to 59, including a fractional part representing fractions of a second.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getTemporalField
-
getEquivalent
Deprecated.TheChronoFieldthat holds the value of this field, or null forQUARTERandWEEK, which have noChronoField.
-
getTemporalField()