date_diff
Calculate precise time differences between two dates, returning results in years, months, days, hours, and minutes with total duration values.
Instructions
Calculate the difference between two dates/times. Returns the difference in years, months, days, hours, minutes and also total days/hours/minutes.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | Yes | Start date in ISO 8601 format (e.g. 2024-01-15 or 2024-01-15T10:30:00) | |
| end | Yes | End date in ISO 8601 format | |
| timezone | No | IANA timezone for parsing dates. Defaults to UTC. |