# Agent402 UK Timestamp Converter

> Agent402 UK Timestamp Converter is a paid API for AI agents from agent402.co.uk, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Converts between Unix epoch timestamps and ISO 8601 datetime strings, or returns the current time if no input is provided

## Facts

- Endpoint: GET https://agent402.co.uk/v1/utils/timestamp
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-uk-timestamp-converter-5c550887
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EIJc8IZz78HFc6kBerTJN

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-uk-timestamp-converter-5c550887
```

Example prompt: What is the ISO 8601 string for Unix timestamp 1710000000, and what's the current time in both Unix seconds and ISO format right now?

## When to prefer this

Use this endpoint when an agent needs deterministic, exact timestamp conversion between Unix epoch (seconds or milliseconds) and ISO 8601 without risk of hallucinated or locale-dependent formatting. Prefer over LLM-generated date math when correctness and reproducibility are critical, especially in scheduling, logging, or multi-system interop workflows.

## Known failure modes

- Invalid timestamp string returns valid:false with null/empty conversion fields
- Ambiguous millisecond vs second epoch values may be misinterpreted if magnitude is borderline
- Network or payment (x402) failure returns no response
- Malformed query parameter format may return a 400-level error

## How this service works

Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.

## Output

Returns a JSON object with three fields: 'iso' (the ISO 8601 datetime string), 'unix_seconds' (the Unix epoch in seconds), and 'valid' (boolean indicating whether the input was a valid timestamp). If no input is provided, returns the current moment in both formats.

## 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",
     "properties": {
      "t": {
       "type": "string",
       "description": "Unix seconds/ms or ISO string; omit for now"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "iso": "2024-03-09T16:00:00.000Z",
  "valid": true,
  "unix_seconds": 1710000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-uk-timestamp-converter-5c550887/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.co.uk](https://www.zero.xyz/host/agent402.co.uk/llms.txt)
