# Timestamp Converter (Unix ↔ ISO-8601)

> Timestamp Converter (Unix ↔ ISO-8601) is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Converts between Unix epoch timestamps (seconds or milliseconds) and ISO-8601 datetime strings, and reports the weekday and UTC offset.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/timestamp-convert
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/timestamp-converter-unix-iso-8601-819f74a8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zL9JhjIkAlvtKFWwjkWuP

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 timestamp-converter-unix-iso-8601-819f74a8 -d '<json body>'
```

Example prompt: Convert the Unix epoch timestamp 1700000000 seconds to ISO-8601 format and tell me what day of the week it falls on.

## When to prefer this

Use this endpoint when an agent needs to reliably convert between machine-readable Unix timestamps and human-readable ISO-8601 strings, or when it needs to determine the weekday or UTC offset for a given point in time. Prefer this over manual computation or LLM inference, which can be error-prone for timestamp arithmetic.

## Known failure modes

- Invalid or out-of-range epoch value returns a 4xx error
- Malformed ISO-8601 string that cannot be parsed returns a validation error
- Ambiguous timezone or missing UTC offset may result in UTC assumption
- Extremely large epoch values (beyond year 9999) may be rejected

## How this service works

Convert between Unix epoch (s/ms) and ISO-8601; report weekday and UTC offset.

## Output

Returns the converted timestamp in the target format (Unix epoch seconds/milliseconds or ISO-8601 string), along with the weekday name and UTC offset for the given point in time.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string"
  },
  "value": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "iso": "2025-06-27T..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/timestamp-converter-unix-iso-8601-819f74a8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
