{"uid":"cap_1kPvaob916P5E4YNY8n9r","slug":"date-math-timezone-converter-dc0ab97a","name":"Date Math: Timezone Converter","description":"Date Math: Convert a time between time zones (IANA names like Asia/Manila, America/New_York), DST-aware. Use for \"what time is 3pm Manila in New York\", scheduling across zones and UTC offsets.","url":"https://date-math.datemath.workers.dev/v1/convert?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"datetime":{"type":"string","description":"ISO 8601 with offset, local YYYY-MM-DDTHH:MM[:SS] (needs from_timezone), or \"now\" (default)"},"to_timezone":{"type":"string","example":"America/New_York"},"from_timezone":{"type":"string","example":"Asia/Manila"}}},"responseSchema":{"type":"json","example":{"to":{"date":"2026-11-07","time":"01:30:00","weekday":"Saturday","datetime":"2026-11-07T01:30:00-05:00","timezone":"America/New_York","utc_offset":"-05:00"},"utc":"2026-11-07T06:30:00Z","from":{"date":"2026-11-07","time":"14:30:00","weekday":"Saturday","datetime":"2026-11-07T14:30:00+08:00","timezone":"Asia/Manila","utc_offset":"+08:00"},"unix_seconds":1794033000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BgclhnEOPa_YLapwXMBI9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts an instant or local wall-clock datetime from one IANA time zone to another, fully DST-aware, returning structured date/time fields for both the source and destination zones.","exampleAgentPrompt":"What time will it be in New York when it's 2:30pm on November 7, 2026 in Manila? Give me the full date and UTC offset too.","exampleUseCases":[{"title":"Global meeting scheduler","prompt":"My team lead is in London and I'm in San Francisco — if we schedule a call for 3:00pm London time on March 15, 2027, what time is that for me in San Francisco?"},{"title":"Flight arrival local time","prompt":"My flight lands at 06:30am UTC on January 10, 2027 — what local time and date will that be in Tokyo?"},{"title":"Deadline localization for remote team","prompt":"Our contract deadline is 11:59pm Pacific Time on December 31, 2026 — what exact time and date does that fall on in Kolkata, India?"}],"resultDescription":"A JSON object with 'from', 'to', and 'utc' blocks. Each block contains the date, time, weekday, full ISO 8601 datetime with UTC offset, timezone name, and UTC offset string. Also includes a 'unix_seconds' field for the instant.","failureModes":["Invalid or unrecognized IANA timezone name returns an error — must use valid IANA identifiers like 'America/New_York', not abbreviations like 'EST'","Ambiguous local time during DST 'fall back' (e.g. 1:30am repeated) may resolve to one of two possible instants","Missing from_timezone when a local (no-offset) datetime is provided will cause a parsing error","Malformed datetime string not matching ISO 8601 or 'YYYY-MM-DDTHH:MM' will return an error","Network or worker timeout under high load"],"whenToPreferThis":"Use this endpoint when you need a DST-aware, authoritative timezone conversion that returns structured fields (date, time, weekday, UTC offset) for both source and destination zones, plus the UTC equivalent and Unix timestamp. Prefer it over generic date libraries when you need reliable IANA timezone handling including DST transitions, or when you need the result broken into discrete components rather than just an offset-adjusted string.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:30:21.322Z","isFirstParty":false,"canonicalSlug":"date-math-timezone-converter-dc0ab97a"}