convert_time
Convert timestamps between timezones using IANA identifiers. Input time in YYYY-MM-DD HH:MM:SS format with source and target timezones to get converted time with day of week information.
Instructions
Convert time between timezones.
Args: time_str: Time in YYYY-MM-DD HH:MM:SS or YYYY-MM-DDTHH:MM:SS format. from_tz: Source IANA timezone (e.g., "America/New_York", "UTC"). to_tz: Target IANA timezone.
Returns: Converted time with day of week for both timezones.
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": {
"time_str": "<time_str>",
"from_tz": "<from_tz>",
"to_tz": "<to_tz>"
},
"name": "convert_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time_str | Yes | ||
| from_tz | Yes | ||
| to_tz | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||