Skip to content

CalendarInterval

CalendarInterval represents a calendar interval.

Creating Instance

CalendarInterval takes the following to be created:

  • Months
  • Days
  • Microseconds

CalendarInterval is created when:

  • CALENDAR_INTERVAL utility is used to extract a CalendarInterval from a ByteBuffer
  • ColumnVector is requested to getInterval
  • IntervalUtils utilities are used
  • DateTimeUtils utility is used to subtractDates
  • UnsafeRow is requested to getInterval
  • UnsafeArrayData is requested to getInterval
  • Literal utility is used to create the default value for CalendarIntervalType
  • TemporalSequenceImpl is requested for the defaultStep

Examples

0 seconds
5 years
2 months
10 days
2 hours
1 minute