package types
Type Members
- final class CalendarInterval extends Serializable with Comparable[CalendarInterval]
The class representing calendar intervals.
The class representing calendar intervals. The calendar interval is stored internally in three components:
- an integer value representing the number of
monthsin this interval, - an integer value representing the number of
daysin this interval, - a long value representing the number of
microsecondsin this interval.
The
monthsanddaysare not units of time with a constant length (unlike hours, seconds), so they are two separated fields from microseconds. One month may be equal to 28, 29, 30 or 31 days and one day may be equal to 23, 24 or 25 hours (daylight saving).- Annotations
- @Unstable()
- Since
3.0.0
- an integer value representing the number of