Returns a time interval based on three date or datetime values.
| Category: | Date and Time |
interval=intget('01mar00'd, '03mar00'd, '09mar00'd);The interval between the first and second dates is DAY2, because
the number of days between March 1, 2000, and March 3, 2000, is two.
The interval between the second and third dates is DAY6, because the
number of days between March 3, 2000, and March 9, 2000, is six. DAY6
is a multiple of DAY2. INTGET returns the smaller of the two intervals.interval=intget('01jan00'd, '01may00'd, '01may01'd);The interval between the first two dates is MONTH4, because the number
of months between January 1, 2000, and May 1, 2000, is four. The interval
between the second and third dates is YEAR. INTGET determines that
YEAR is a multiple of MONTH4 (there are three MONTH4 intervals in
YEAR), and returns the smaller of the two intervals.interval=intget('01Jan2006'd, '01Apr2006'd, '01Dec2006'd);The interval between the first two dates is MONTH3, and the interval
between the second and third dates is MONTH8. INTGET determines that
MONTH8 is not a multiple of MONTH3, and returns a missing value.