Time Zone Converter API
Convert a wall-clock date and time in one IANA time zone to other zones, DST-aware, with offsets and day shifts.
POST /api/v1/tools/time-zone-converterMCP time_zone_converterTime & DateConvert a date and time between any IANA time zones, with UTC offsets and daylight saving handled automatically. Compare several cities at once.
Input
Send these as a JSON object. Unknown fields are rejected.
- dateTime
- Local date and time in the source zone: "YYYY-MM-DDTHH:MM" or "YYYY-MM-DD HH:MM[:SS]", e.g. "2026-10-20T09:00". (string, up to 30 characters, required)
- from
- Source IANA time zone, e.g. America/New_York, or UTC. (string, up to 64 characters, required)
- to
- Comma-separated target IANA time zones (up to 24), e.g. "Europe/London,Asia/Tokyo". (string, up to 2000 characters, required)
curl https://pithlab.com/api/v1/tools/time-zone-converter \n -H "Authorization: Bearer $PITHLAB_KEY" \n -H "Content-Type: application/json" \n -d '{"dateTime":"2026-10-20T09:00","from":"America/New_York","to":"Europe/London,Asia/Tokyo"}'Example response
{
"ok": true,
"result": {
"utc": "2026-10-20T13:00:00.000Z",
"source": {
"zone": "America/New_York",
"date": "2026-10-20",
"time": "09:00",
"weekday": "Tue",
"offsetMinutes": -240,
"offset": "UTC-04:00",
"dayShift": 0,
"text": "2026-10-20 09:00 America/New_York (UTC-04:00)"
},
"targets": [
{
"zone": "Europe/London",
"date": "2026-10-20",
"time": "14:00",
"weekday": "Tue",
"offsetMinutes": 60,
"offset": "UTC+01:00",
"dayShift": 0,
"text": "2026-10-20 14:00 Europe/London (UTC+01:00)"
},
{
"zone": "Asia/Tokyo",
"date": "2026-10-20",
"time": "22:00",
"weekday": "Tue",
"offsetMinutes": 540,
"offset": "UTC+09:00",
"dayShift": 0,
"text": "2026-10-20 22:00 Asia/Tokyo (UTC+09:00)"
}
],
"adjustedForDst": false,
"summary": "2026-10-20 14:00 Europe/London (UTC+01:00); 2026-10-20 22:00 Asia/Tokyo (UTC+09:00)"
}
}