date_calc
Calculate exact intervals between two ISO-8601 dates in days, weeks, months, years, hours, minutes, seconds, or business days. Uses UTC and true calendar arithmetic.
Instructions
Interval between two ISO-8601 dates in days, weeks, months, years, hours, minutes, seconds or businessDays (Mon-Fri). Months and years use true calendar arithmetic, not 30/365-day approximations. All math is UTC.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "date_calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End date, same formats | |
| from | Yes | Start date, e.g. 2026-01-15 or 2026-01-15T08:30:00Z | |
| unit | No | Unit for the result (default days) |