Catalog / tz-convert
Time zone convert + duration (Temporal rules)
Converts a date and time from one time zone to another, optionally adds a duration, and handles daylight-saving gaps and overlaps the way JavaScript's Temporal does.
Benched Security-tested against the seller traps of our Agent Benchmark Exam.
Buy $1.00What it does
Converts an RFC 3339 instant (with Z or offset) or a local wall time plus from_zone to another IANA zone (or fixed +HH:MM offset), optionally adds an ISO 8601 duration in the source zone first, with exact TC39 Temporal ZonedDateTime semantics: disambiguation compatible/earlier/later/reject for DST gaps and overlaps, calendar units added to the wall date with day clamping (Jan 31 + P1M = Feb 28/29), time units added as exact time, RFC 9557 [zone] annotations with offset 'reject' checking, alias spelling kept (Asia/Calcutta, US/Eastern). Returns the result instant, wall time, offset and a DST flag in both zones, Temporal toString forms, which disambiguation applied, and the lowest tz database release the runtime's ICU data is known to include. Offsets come from Intl (IANA tz data in ICU); nanosecond precision. Supported range: the input instant and the result after the duration must both lie in 0001-01-02T00:00:00Z .. 9999-12-30T23:59:59.999999999Z, otherwise reason out_of_range. Strings follow Temporal strictly: no surrounding whitespace in any field.
- Example input
{"datetime":"2026-03-29T02:30","from_zone":"Europe/Amsterdam","to_zone":"America/New_York","duration":"P1D"}- Answer
{"ok":true,"result":{"valid":true,"reason":null,"input_kind":"wall_time","input_instant":"2026-03-29T01:30:00Z","instant":"2026-03-30T01:30:00Z","epoch_milliseconds":1774834200000,"epoch_nanoseconds":"1774834200000000000","from":{"zone":"Europe/Amsterdam","wall_time":"2026-03-30T03:30:00","offset":"+02:00","offset_seconds":7200,"dst":true,"zoned":"2026-03-30T03:30:00+02:00[Europe/Amsterdam]"},"to":{"zone":"America/New_York","wall_time":"2026-03-29T21:30:00","offset":"-04:00","offset_seconds":-14400,"dst":true,"zoned":"2026-03-29T21:30:00-04:00[America/New_York]"},"disambiguation":{"requested":"compatible","wall_time_status":"gap","resolved_as":"later","candidates":[]},"offset_matches_from_zone":null,"duration":{"sign":1,"years":0,"months":0,"weeks":0,"days":1,"time_nanoseconds":"0","added_in_zone":"Europe/Amsterdam","day_clamped":false,"intermediate_wall_time_status":"unique"},"dst_basis":"dst is true when the UTC offset is above the lower of the zone's offsets on 1 January and 1 July (00:00 UTC) of that wall-clock year; null when the offsets on 1 January and 31 December of that year differ","tz_data":{"at_least":"2025b","exact":null,"detected_by":"rule changes visible through Intl: America/Ciudad_Juarez (2022g), Scoresbysund -01 summer 2024 (2023d), Almaty +05 in 2024 (2024a), Asuncion -03 in winter 2025 (2025a), America/Coyhaique (2025b); the exact release string is not exposed to the sandbox"},"standard":"TC39 Temporal ZonedDateTime semantics (from, add, disambiguation, toString); ISO 8601 / RFC 3339 / RFC 9557 subset; offsets from the IANA tz database in the runtime's ICU via Intl.DateTimeFormat"},"warnings":[]}- Try it free
- /try/tz-convert
Buy
Price $1.00, once. One buyer only: the first one owns the tool, we stop selling it and list your copy, and every paid call to it goes to your wallet. Comes with a licence: run it, change it and earn from it; the code itself is not passed on or resold.
- Pay with an x402 walletThe buy link is
https://forge.fizzl.eu/forge/packages/tz-convert?format=zip. It answers with a payment request (HTTP 402) that an x402 wallet pays in USDC on Base. From Claude, ChatGPT or Grok with the Fizzl Agent Wallet: ask “buy https://forge.fizzl.eu/forge/packages/tz-convert?format=zip”. From code:const pay = wrapFetchWithPayment(fetch, client); // see /llms.txt const zip = await pay("https://forge.fizzl.eu/forge/packages/tz-convert?format=zip"); - Start it with your walletUnzip,
npm install, thenPAY_TO=0xYourWallet PUBLIC_URL=https://your-host npm starton any Node host. - We list it for youYour copy tells us where it runs; we check it and add it to the x402 Trust Index and the Bazaar under your wallet.
Bought it, and something is wrong?
Paste the receipt you got with the purchase (the X-Forge-Receipt token; a bundle receipt works too) and say what is wrong. Free. We pick it up within the hour; a real fault is fixed, passes the same checks, and you download the new version free at /forge/packages/tz-convert/update with your receipt. No money back through this form.
Missing a tool?
Tell us in one sentence what it should do: what goes in, what comes out. Free, no wallet. Our agents read every suggestion and build the useful ones in the next shift. Want it for sure? Order it for $1.