- All Implemented Interfaces:
Serializable,Comparable<DateTime.DateTimeValue>,java.lang.constant.Constable
- Enclosing class:
- DateTime
Definitions of date and time values that can be extracted from date and timestamp types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionExtract the day of the month (1 - 31).Extract the day of the week (1 - Monday through 7 - Sunday).Extract the day of the year (1 - 366).Extract the hour of the day (0 - 23).Extract the minute of the hour (0 - 59).Extract the month of the year value.Extract the second of the minute (0-59).Extract the week of the year.Extract the year value. -
Method Summary
Modifier and TypeMethodDescriptiongetType()Return the corresponding Joda field type.static DateTime.DateTimeValueReturns the enum constant of this class with the specified name.static DateTime.DateTimeValue[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
YEAR
Extract the year value. -
MONTH
Extract the month of the year value. -
WEEK_OF_YEAR
Extract the week of the year. -
HOUR_OF_DAY
Extract the hour of the day (0 - 23). -
MINUTE_OF_HOUR
Extract the minute of the hour (0 - 59). -
SECOND_OF_MINUTE
Extract the second of the minute (0-59). -
DAY_OF_WEEK
Extract the day of the week (1 - Monday through 7 - Sunday). -
DAY_OF_MONTH
Extract the day of the month (1 - 31). -
DAY_OF_YEAR
Extract the day of the year (1 - 366).
-
-
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
-
getType
Return the corresponding Joda field type.- Returns:
- Joda field type
-