$ man timezone-convert
/timezone-convert
PRICE / CALL
$0.005
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
localeCATEGORY
uncategorized
STATUS
● live
NAME
timezone-convert — converts a datetime from one iana timezone to another with correct dst handling
SYNOPSIS
POST https://x402.agentutility.ai/timezone-convert
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Converts a datetime from one IANA timezone to another with correct DST handling. ISO-8601 input: bare wall-time strings are interpreted in the from_tz, fully-qualified offsets are honored. DST is handled correctly (uses V8's built-in tzdata via Intl.DateTimeFormat). Returns both formatted strings, both UTC offsets, and the difference in hours. Use it for DST-aware time arithmetic, wall-clock to UTC conversion, or converting across cities.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| datetime | string | ISO-8601 datetime. With offset (e.g. '2026-05-08T12:00:00-07:00') it's used as-is; without offset (e.g. '2026-05-08T12:00:00') it's interpreted in from_tz. | required |
| from_tz | string | IANA timezone for the input wall-time (e.g. 'America/Los_Angeles'). | required |
| to_tz | string | IANA timezone for the output (e.g. 'Asia/Tokyo'). | required |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| from | string | Converted datetime formatted in the source IANA timezone with its UTC offset. |
| to | string | Converted datetime formatted in the target IANA timezone with its UTC offset. |
| utc_iso | string | Equivalent moment in UTC as an ISO-8601 timestamp with Z suffix. |
| utc_offset_diff_hours | string | Signed hour difference between the target and source UTC offsets at that instant. |
| source | string | Identifier of the tzdata source used for the conversion (V8 Intl.DateTimeFormat). |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/timezone-convert \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the timezone-convert tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- localetimezonetz-convertiana-tzdstdatetimeutc-offsettimezone-conversion
- methods
- POST
- cluster
- locale
- price
- $0.005 USDC per call
ADJACENT — other endpoints in locale
| endpoint | description | price |
|---|---|---|
| air-quality | Returns current air quality readings and AQI category for any latitude/longitude, with optional hourly forecast rows for the next 1-72 hours. | $0.005 |
| airport-code-lookup | Resolves airport codes to airport name, municipality, country, region, coordinates, elevation, scheduled-service flag, homepage, and Wiki… | $0.005 |
| astro-times | Sunrise sunset times. | $0.005 |
| climate-data | Returns historical daily temperature, precipitation, humidity, wind, and solar radiation for any latitude/longitude. | $0.005 |
| country-info | Country info lookup. | $0.005 |
| current-weather | Looks up current weather conditions for a latitude/longitude: temperature, humidity, precipitation, wind, and WMO condition code. | $0.005 |
| holiday-lookup | Holiday calendar. | $0.005 |
| iata-airport-info | Looks up airport metadata from an IATA or ICAO code. | $0.005 |
SEE ALSO