# agent402.tools Time Converter

> agent402.tools Time 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 timestamp (epoch seconds/ms, ISO 8601 string, or 'now') into every common time representation, optionally rendered in a specified IANA timezone.

## Facts

- Endpoint: POST https://agent402.tools/api/time-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-time-converter-7a3cc0ad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Qrl_38hbYtjbczWSmK1w1

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-time-converter-7a3cc0ad -d '<json body>'
```

Example prompt: Convert the timestamp 1700000000 into every time format — epoch seconds, epoch milliseconds, and ISO 8601 — and show it in the America/New_York timezone.

## When to prefer this

Use this endpoint when you need a timestamp converted across multiple representations simultaneously — epoch, ISO 8601, and IANA timezone-localized — in a single call. Prefer it over manual calculation or language-level date libraries when you need a reliable, consistent, multi-format output for any timezone without writing conversion logic.

## Known failure modes

- Invalid or unrecognized value format returns an error (e.g. passing a non-date string)
- Unrecognized IANA timezone string causes a validation error
- Missing or null 'value' field may return a bad request response
- Ambiguous epoch value (seconds vs milliseconds boundary) may produce unexpected output

## How this service works

Convert between epoch (s or ms), ISO 8601, and any IANA timezone. Give a value, get every representation back.

## Output

Returns the input timestamp expressed in all common representations: epoch seconds, epoch milliseconds, ISO 8601 string, and a timezone-localized datetime string for the requested IANA timezone (if provided).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tz": {
   "type": "string",
   "description": "IANA timezone to render in (optional)"
  },
  "value": {
   "description": "Epoch seconds/ms, ISO string, or 'now'"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "utc": "2026-06-11T10:00:00.000Z",
  "local": "2026-06-11 19:00:00 JST",
  "epochMillis": 1781172000000,
  "epochSeconds": 1781172000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-time-converter-7a3cc0ad/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)
