date_math
Add or subtract time from a datetime respecting DST, or calculate the difference between two datetimes in different time zones.
Instructions
Add/subtract time to a date respecting DST (days are calendar-based, hours/minutes are absolute), or compute the difference between two datetimes in different zones.
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": {
"datetime": "<datetime>",
"timezone": "<timezone>",
"operation": "<operation>"
},
"name": "date_math"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datetime | Yes | Base datetime: ISO 8601 or natural language. | |
| timezone | Yes | IANA timezone the base datetime is in. | |
| operation | Yes | Operation to perform. |