Epoch Converter

Convert between Unix epoch time and ISO-8601, in UTC and any IANA time zone. Deterministic, no network. First-party on grokzilla.shop.

Call

POST /api/skills/epoch-convert

{"value": 1700000000, "tz": "America/Chicago"}

value (required: number, numeric string, or ISO-8601 string up to 64 characters), tz (optional IANA zone, default UTC).

Numbers are read by magnitude: below 1e11 seconds, below 1e14 milliseconds, below 1e17 microseconds, otherwise nanoseconds (input_kind says which). An ISO string without an offset is read in tz. epoch_s is an integer for whole seconds, else a decimal with millisecond precision.

Errors (not charged)

Response (paid 200)

{
  "skill": "epoch_convert",
  "ok": true,
  "input_kind": "epoch_s",
  "epoch_s": 1700000000,
  "epoch_ms": 1700000000000,
  "iso_utc": "2023-11-14T22:13:20Z",
  "iso_tz": "2023-11-14T16:13:20-06:00",
  "tz": "America/Chicago",
  "utc_offset": "-06:00"
}

Unpaid → HTTP 402 (x402 USDC on Base). Retry with PAYMENT-SIGNATURE. Free preflight: send X-X402-Validate-Only: 1 (422 on bad params, else 402).

Price: $0.003 per call.