Timezone Conversion
convert_timezoneConvert time between any two timezones using IANA names, coordinates, airport codes, or city names. Get original and converted times with time differences.
Instructions
Read-only time conversion via GET /v3/timezone/convert. Works on free and paid plans. Cost: 1 credit. Use only when the user provides one source selector and one destination selector; use get_timezone for a single place's current time or metadata.
Source/destination selectors are tz_from/tz_to, location_from/location_to, iata_from/iata_to, icao_from/icao_to, locode_from/locode_to, or lat_from+long_from and lat_to+long_to. time is optional and must be yyyy-MM-dd HH:mm or yyyy-MM-dd HH:mm:ss. Returns original time, converted time, diff_hour, and diff_min.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | Time to convert in yyyy-MM-dd HH:mm or yyyy-MM-dd HH:mm:ss format. Defaults to current time. | |
| tz_to | No | Destination IANA timezone name (e.g. Asia/Tokyo). | |
| lat_to | No | Destination latitude. Use with long_to. | |
| iata_to | No | Destination 3-letter IATA airport code. | |
| icao_to | No | Destination 4-letter ICAO airport code. | |
| long_to | No | Destination longitude. Use with lat_to. | |
| tz_from | No | Source IANA timezone name (e.g. America/New_York). | |
| lat_from | No | Source latitude. Use with long_from. | |
| iata_from | No | Source 3-letter IATA airport code. | |
| icao_from | No | Source 4-letter ICAO airport code. | |
| locode_to | No | Destination 5-character UN/LOCODE. | |
| long_from | No | Source longitude. Use with lat_from. | |
| location_to | No | Destination city or address string. | |
| locode_from | No | Source 5-character UN/LOCODE. | |
| location_from | No | Source city or address string. |