Class LocalDateTimeField<N>

  • Type Parameters:
    N - the resulting type of the extracted value
    All Implemented Interfaces:
    TemporalField<N,​java.time.LocalDateTime>

    public class LocalDateTimeField<N>
    extends java.lang.Object
    implements TemporalField<N,​java.time.LocalDateTime>
    Each instance represents a type of field which can be extracted from a LocalDateTime.
    Since:
    3.2
    • Field Detail

      • name

        private final java.lang.String name
      • QUARTER

        public static final LocalDateTimeField<java.lang.Integer> QUARTER
        The calendar quarter, numbered from 1 to 4.
      • MONTH

        public static final LocalDateTimeField<java.lang.Integer> MONTH
        The calendar month of the year, numbered from 1.
      • WEEK

        public static final LocalDateTimeField<java.lang.Integer> WEEK
        The ISO-8601 week number.
      • DAY

        public static final LocalDateTimeField<java.lang.Integer> DAY
        The calendar day of the month, numbered from 1.
      • HOUR

        public static final LocalDateTimeField<java.lang.Integer> HOUR
        The hour of the day in 24-hour time, numbered from 0 to 23.
      • MINUTE

        public static final LocalDateTimeField<java.lang.Integer> MINUTE
        The minute of the hour, numbered from 0 to 59.
      • SECOND

        public static final LocalDateTimeField<java.lang.Double> SECOND
        The second of the minute, numbered from 0 to 59, including a fractional part representing fractions of a second
      • DATE

        public static final LocalDateTimeField<java.time.LocalDate> DATE
        The date part of a datetime.
      • TIME

        public static final LocalDateTimeField<java.time.LocalTime> TIME
        The time part of a datetime.
    • Constructor Detail

      • LocalDateTimeField

        private LocalDateTimeField​(java.lang.String name)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object