# agent402.tools Timezone Converter

> agent402.tools Timezone Converter is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Converts a datetime from one IANA timezone to another, accepting ISO 8601, Unix timestamps, or natural date strings, and returning the converted time with UTC offsets for both zones.

## Facts

- Endpoint: GET https://agent402.tools/api/timezone-convert
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-timezone-converter-307e611d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m5BdKG2wqKn-u8A5J26nd

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-tools-timezone-converter-307e611d
```

Example prompt: What time is 2026-06-23T14:00:00 in America/New_York when converted to Asia/Tokyo? Give me the UTC offsets for both zones.

## When to prefer this

Use this endpoint when you need to convert a specific datetime between any two IANA-named timezones and want both the converted time and UTC offsets returned. Prefer this over manual offset arithmetic when dealing with DST-aware conversions or when the input may be in ISO 8601, Unix (seconds or milliseconds), or natural language date formats.

## Known failure modes

- Invalid or unrecognized IANA timezone string returns an error
- Malformed datetime string (not ISO 8601, not a Unix timestamp, not a parseable natural date) returns a parse error
- Missing required query parameters (datetime, from, or to) returns a 400 bad request
- Out-of-range Unix timestamps may fail or return unexpected results

## How this service works

Convert a datetime from one IANA timezone to another. Accepts ISO 8601, Unix timestamps (seconds or milliseconds), or natural date strings. Returns the converted time in both timezones with UTC offset. ?datetime=2026-06-23T14:00:00&from=America/New_York&to=Asia/Tokyo.

## Output

Returns the converted datetime in the target timezone along with the UTC offset for both the source and target timezones, enabling precise cross-timezone scheduling and display.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "datetime",
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Target IANA timezone (e.g. Asia/Tokyo)"
      },
      "from": {
       "type": "string",
       "description": "Source IANA timezone (e.g. America/New_York)"
      },
      "datetime": {
       "type": "string",
       "description": "Datetime to convert (ISO 8601, Unix timestamp, or natural date string)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "input",
      "from",
      "to",
      "utc"
     ],
     "properties": {
      "to": {
       "type": "object",
       "properties": {
        "timezone": {
         "type": "string"
        },
        "formatted": {
         "type": "string"
        }
       }
      },
      "utc": {
       "type": "string"
      },
      "from": {
       "type": "object",
       "properties": {
        "timezone": {
         "type": "string"
        },
        "formatted": {
         "type": "string"
        }
       }
      },
      "input": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": {
   "timezone": "Asia/Tokyo",
   "formatted": "06/24/2026, 03:00:00 JST"
  },
  "utc": "2026-06-23T18:00:00.000Z",
  "from": {
   "timezone": "America/New_York",
   "formatted": "06/23/2026, 14:00:00 EDT"
  },
  "input": "2026-06-23T14:00:00"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-timezone-converter-307e611d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
