Enum DateTimeExtractField

    • Enum Constant Detail

      • QUARTER

        public static final DateTimeExtractField QUARTER
        Means the calendar quarter, numbered from 1 to 4
      • MONTH

        public static final DateTimeExtractField MONTH
        Means the calendar month of the year, numbered from 1
      • DAY

        public static final DateTimeExtractField DAY
        Means the calendar day of the month, numbered from 1
      • HOUR

        public static final DateTimeExtractField HOUR
        Means the hour of the day in 24-hour time, numbered from 0 to 23
      • MINUTE

        public static final DateTimeExtractField MINUTE
        Mans the minute of the hour, numbered from 0 to 59
      • SECOND

        public static final DateTimeExtractField SECOND
        Means the second of the minute, numbered from 0 to 59, including a fractional part representing fractions of a second.
    • Method Detail

      • values

        public static DateTimeExtractField[] 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 (DateTimeExtractField c : DateTimeExtractField.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DateTimeExtractField 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 name
        NullPointerException - if the argument is null