Package smile.data.formula
Enum Class DateFeature
- All Implemented Interfaces:
Serializable
,Comparable<DateFeature>
,Constable
The date/time features.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe day of month represented by an integer from 1 to 31 in the usual manner.The day of week represented by an integer from 1 to 7; 1 is Monday, 2 is Tuesday, and so forth; thus 7 is Sunday.The day of year represented by an integer from 1 to 365, or 366 in a leap year.The hours represented by an integer from 0 to 23.The minutes represented by an integer from 0 to 59 in the usual manner.The month represented by an integer from 1 to 12; 1 is January, 2 is February, and so forth; thus 12 is December.The quarter-of-year has values from 1 to 4.The seconds represented by an integer from 0 to 59 in the usual manner.The count of weeks within the month.The count of weeks within the year.The year represented by an integer. -
Method Summary
Modifier and TypeMethodDescriptionstatic DateFeature
Returns the enum constant of this class with the specified name.static DateFeature[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
YEAR
The year represented by an integer. -
QUARTER
The quarter-of-year has values from 1 to 4. -
MONTH
The month represented by an integer from 1 to 12; 1 is January, 2 is February, and so forth; thus 12 is December. -
WEEK_OF_YEAR
The count of weeks within the year. If the first week starts after the start of the year then the period before is week zero. -
WEEK_OF_MONTH
The count of weeks within the month. If the first week starts after the start of the month then the period before is week zero. -
DAY_OF_YEAR
The day of year represented by an integer from 1 to 365, or 366 in a leap year. -
DAY_OF_MONTH
The day of month represented by an integer from 1 to 31 in the usual manner. -
DAY_OF_WEEK
The day of week represented by an integer from 1 to 7; 1 is Monday, 2 is Tuesday, and so forth; thus 7 is Sunday. -
HOUR
The hours represented by an integer from 0 to 23. Thus, the hour from midnight to 1 a.m. is hour 0, and the hour from noon to 1 p.m. is hour 12. -
MINUTE
The minutes represented by an integer from 0 to 59 in the usual manner. -
SECOND
The seconds represented by an integer from 0 to 59 in the usual manner.
-
-
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
-