c = between(t1, t2)
c = between(t1, t2, components)
| Parameter | Description |
|---|---|
| inputs | Two datetime or date-compatible inputs and an optional component selector such as years, quarters, months, or days. |
| Parameter | Description |
|---|---|
| output | A calendarDuration array. |
Return calendar durations between two datetime values.
between expresses the interval using whole calendar components plus remaining day and time components. It supports scalar expansion between the two endpoints.
Array-valued inputs keep their data shape when the operation supports arrays. Scalar operands are expanded where the implementation defines scalar expansion.
c = between(datetime(2024, 1, 15), datetime(2024, 3, 20))
split(c, 'months')
split(c, 'days')
| Version | Description |
|---|---|
| 2.0.0 | initial version |