convert_time
Convert a datetime from one timezone to another with accurate DST and historical timezone handling using IANA tzdata.
Instructions
Convert a datetime from one timezone to another using IANA rules.
Performs timezone conversion independent of system clock. Uses IANA tzdata
to handle all DST transitions, historical changes, and political boundaries.
Args:
datetime_str: ISO 8601 datetime string (naive, will be interpreted in from_timezone)
from_timezone: Source IANA timezone identifier
to_timezone: Target IANA timezone identifier
Returns:
TimezoneConversionResponse with conversion details and explanation
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_str": "<datetime_str>",
"from_timezone": "<from_timezone>",
"to_timezone": "<to_timezone>"
},
"name": "convert_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datetime_str | Yes | ||
| from_timezone | Yes | ||
| to_timezone | Yes |