date_diff
Calculate the time difference between two dates in days, hours, minutes, seconds, weeks, or business days.
Instructions
Calculate the difference between two dates in multiple units (days, hours, minutes, seconds, weeks, business days).
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_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End date (ISO 8601 or 'now') | |
| from | Yes | Start date (ISO 8601 or 'now') |