Convert a time between zones
convert_timezoneConverts a wall-clock time from one IANA time zone to another. Says explicitly how a non-existent (daylight-saving gap) or repeated (overlap) time was resolved.
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>",
"time": "<time>"
},
"name": "convert_timezone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target IANA time zone, e.g. Asia/Tokyo | |
| from | Yes | Source IANA time zone, e.g. America/New_York | |
| time | Yes | Wall-clock time in the source zone, YYYY-MM-DDTHH:MM or YYYY-MM-DDTHH:MM:SS, without a UTC offset (1970–2100) | |
| overlap | No | Which occurrence to use when the time happens twice. Default: earlier. | earlier |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | One instant as it reads on the clocks of a time zone. | |
| utc | Yes | UTC instant, YYYY-MM-DDTHH:MM:SSZ | |
| from | Yes | One instant as it reads on the clocks of a time zone. | |
| note | Yes | ||
| input | Yes | ||
| source | Yes | Where the data or the algorithm comes from. | |
| resolution | Yes | How the source wall-clock time was resolved | |
| occurrences | No | Both occurrences, when the source time happens twice |