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 toextract
aCalendarInterval
from aByteBuffer
ColumnVector
is requested to getIntervalIntervalUtils
utilities are usedDateTimeUtils
utility is used tosubtractDates
UnsafeRow
is requested to getIntervalUnsafeArrayData
is requested togetInterval
Literal
utility is used to create the default value for CalendarIntervalTypeTemporalSequenceImpl
is requested for thedefaultStep
Examples¶
0 seconds
5 years
2 months
10 days
2 hours
1 minute