Convert a datetime between any two IANA time zones using the runtime's ICU tzdb — always c
Convert a datetime between any two IANA time zones using the runtime's ICU tzdb — always current, DST-correct, half-hour zones included. A datetime without offset is read as wall time in `from` (ambiguous fall-back times resolve to the earlier instant; times skipped by spring-forward shift ahead, flagged in `note`). Returns both ISO datetimes with offsets and DST status per side. Unknown zone → 400 with a spelling suggestion.
1000 (raw units)
price
1
calls / 30d
1
unique payers
2026-09-18
updated
Provider
402utils.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xc55A2D530b53CBaD1001e4AfD4720B7E71f9C291",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"datetime": "2026-07-14T09:30:00",
"from": "Europe/Paris",
"to": "Asia/Ho_Chi_Minh"
},
"type": "http"
},
"output": {
"example": {
"dstActive": {
"from": true,
"to": false
},
"fromOffset": "+02:00",
"input": "2026-07-14T09:30:00+02:00",
"output": "2026-07-14T14:30:00+07:00",
"toOffset": "+07:00"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"description": "Query params. `datetime` optional (default: now). `from`/`to` are IANA zone ids.",
"properties": {
"datetime": {
"description": "ISO 8601. With Z/±HH:MM it is an absolute instant; without, wall time in `from`.",
"type": "string"
},
"from": {
"description": "Source IANA zone, e.g. Europe/Paris.",
"type": "string"
},
"to": {
"description": "Target IANA zone, e.g. Asia/Ho_Chi_Minh.",
"type": "string"
}
},
"required": [
"from",
"to"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"additionalProperties": false,
"properties": {
"dstActive": {
"description": "Whether daylight-saving time is in effect on each side.",
"properties": {
"from": {
"type": "boolean"
},
"to": {
"type": "boolean"
}
},
"required": [
"from",
"to"
],
"type": "object"
},
"fromOffset": {
"description": "UTC offset of `from` at that instant, ±HH:MM.",
"type": "string"
},
"input": {
"description": "The instant expressed in `from`, ISO with offset.",
"type": "string"
},
"note": {
"description": "Present when the wall time was ambiguous or nonexistent in `from`.",
"type": "string"
},
"output": {
"description": "The same instant expressed in `to`.",
"type": "string"
},
"toOffset": {
"description": "UTC offset of `to` at that instant.",
"type": "string"
}
},
"required": [
"input",
"output",
"fromOffset",
"toOffset",
"dstActive"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://402utils.com/v1/timezone-convert" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://402utils.com/v1/timezone-convert");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://402utils.com/v1/timezone-convert")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/5900.json, and this resource appears in /discovery/resources and /discovery/search.