- java.lang.Object
-
- java.lang.Enum<DateTime.DateTimeValue>
-
- com.pervasive.datarush.functions.DateTime.DateTimeValue
-
- All Implemented Interfaces:
Serializable
,Comparable<DateTime.DateTimeValue>
- Enclosing class:
- DateTime
public static enum DateTime.DateTimeValue extends Enum<DateTime.DateTimeValue>
Definitions of date and time values that can be extracted from date and timestamp types.
-
-
Enum Constant Summary
Enum Constants Enum Constant 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
YEAR
public static final DateTime.DateTimeValue YEAR
Extract the year value.
-
MONTH
public static final DateTime.DateTimeValue MONTH
Extract the month of the year value.
-
WEEK_OF_YEAR
public static final DateTime.DateTimeValue WEEK_OF_YEAR
Extract the week of the year.
-
HOUR_OF_DAY
public static final DateTime.DateTimeValue HOUR_OF_DAY
Extract the hour of the day (0 - 23).
-
MINUTE_OF_HOUR
public static final DateTime.DateTimeValue MINUTE_OF_HOUR
Extract the minute of the hour (0 - 59).
-
SECOND_OF_MINUTE
public static final DateTime.DateTimeValue SECOND_OF_MINUTE
Extract the second of the minute (0-59).
-
DAY_OF_WEEK
public static final DateTime.DateTimeValue DAY_OF_WEEK
Extract the day of the week (1 - Monday through 7 - Sunday).
-
DAY_OF_MONTH
public static final DateTime.DateTimeValue DAY_OF_MONTH
Extract the day of the month (1 - 31).
-
DAY_OF_YEAR
public static final DateTime.DateTimeValue DAY_OF_YEAR
Extract the day of the year (1 - 366).
-
-
Method Detail
-
values
public static DateTime.DateTimeValue[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DateTime.DateTimeValue c : DateTime.DateTimeValue.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateTime.DateTimeValue valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getType
public org.joda.time.DateTimeFieldType getType()
Return the corresponding Joda field type.- Returns:
- Joda field type
-
-