public static enum DateTime.DateTimeValue extends Enum<DateTime.DateTimeValue>
Enum Constant and Description |
---|
DAY_OF_MONTH
Extract the day of the month (1 - 31).
|
DAY_OF_WEEK
Extract the day of the week (1 - Monday through 7 - Sunday).
|
DAY_OF_YEAR
Extract the day of the year (1 - 366).
|
HOUR_OF_DAY
Extract the hour of the day (0 - 23).
|
MINUTE_OF_HOUR
Extract the minute of the hour (0 - 59).
|
MONTH
Extract the month of the year value.
|
SECOND_OF_MINUTE
Extract the second of the minute (0-59).
|
WEEK_OF_YEAR
Extract the week of the year.
|
YEAR
Extract the year value.
|
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateTimeFieldType |
getType()
Return the corresponding Joda field type.
|
static DateTime.DateTimeValue |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateTime.DateTimeValue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTime.DateTimeValue YEAR
public static final DateTime.DateTimeValue MONTH
public static final DateTime.DateTimeValue WEEK_OF_YEAR
public static final DateTime.DateTimeValue HOUR_OF_DAY
public static final DateTime.DateTimeValue MINUTE_OF_HOUR
public static final DateTime.DateTimeValue SECOND_OF_MINUTE
public static final DateTime.DateTimeValue DAY_OF_WEEK
public static final DateTime.DateTimeValue DAY_OF_MONTH
public static final DateTime.DateTimeValue DAY_OF_YEAR
public static DateTime.DateTimeValue[] values()
for (DateTime.DateTimeValue c : DateTime.DateTimeValue.values()) System.out.println(c);
public static DateTime.DateTimeValue 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 org.joda.time.DateTimeFieldType getType()
Copyright © 2020 Actian Corporation. All rights reserved.