Enum Class DateFeature

java.lang.Object
java.lang.Enum<DateFeature>
smile.data.formula.DateFeature
All Implemented Interfaces:
Serializable, Comparable<DateFeature>, Constable

public enum DateFeature extends Enum<DateFeature>
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 Constants
    Enum Constant
    Description
    The 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 Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static DateFeature[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • YEAR

      public static final DateFeature YEAR
      The year represented by an integer.
    • QUARTER

      public static final DateFeature QUARTER
      The quarter-of-year has values from 1 to 4.
    • MONTH

      public static final DateFeature 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

      public static final DateFeature 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

      public static final DateFeature 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

      public static final DateFeature DAY_OF_YEAR
      The day of year represented by an integer from 1 to 365, or 366 in a leap year.
    • DAY_OF_MONTH

      public static final DateFeature DAY_OF_MONTH
      The day of month represented by an integer from 1 to 31 in the usual manner.
    • DAY_OF_WEEK

      public static final DateFeature 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

      public static final DateFeature 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

      public static final DateFeature MINUTE
      The minutes represented by an integer from 0 to 59 in the usual manner.
    • SECOND

      public static final DateFeature SECOND
      The seconds represented by an integer from 0 to 59 in the usual manner.
  • Method Details

    • values

      public static DateFeature[] 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

      public static DateFeature valueOf(String name)
      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 name
      NullPointerException - if the argument is null