datetime_diff
Compute the absolute difference between two datetime strings, returning the duration in a specified unit. Ideal for finding time intervals, scheduling gaps, or duration calculations.
Instructions
[datetime] Compute the absolute difference between two datetime strings.
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": {
"a": "<a>",
"b": "<b>"
},
"name": "datetime_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| unit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |