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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"start": "<start>",
"end": "<end>"
},
"name": "date_diff"
}
}Input 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. |