# Coinlight Time Converter

> Coinlight Time Converter is a paid API for AI agents from coinlight-app.vercel.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-30).

Converts a Unix timestamp (seconds or ms) or ISO date string into ISO UTC, Unix seconds, Unix milliseconds, and a human-readable relative 'x ago' string; returns current time if no input given.

## Facts

- Endpoint: GET https://coinlight-app.vercel.app/p/time-convert?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coinlight-time-converter-39aaf56a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LRL-NapVfKPEgA5Xii22Y

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 coinlight-time-converter-39aaf56a
```

Example prompt: Can you convert the unix timestamp 1792779111 into ISO UTC, unix milliseconds, and show me how long ago that was?

## When to prefer this

Use this endpoint when you need a single, cheap, keyless call to convert any time representation (unix seconds, unix ms, or ISO 8601) into all common timestamp formats simultaneously, including a human-friendly relative string. Prefer it over manual calculation or heavyweight datetime libraries when working in an agent pipeline that needs fast, reliable time formatting. Especially useful when you receive an opaque numeric timestamp from another API and need to present it in multiple formats without writing conversion logic.

## Known failure modes

- Invalid or unparseable timestamp format returns an error response
- Ambiguous numeric input (could be seconds or ms) may be misinterpreted — the API attempts to auto-detect
- Very old or far-future dates may fall outside supported range
- Malformed ISO 8601 strings (missing timezone, invalid separators) may return an error
- Network timeout or Vercel cold-start delay on first request

## How this service works

Coinlight charges USDC per API call with the x402 protocol on Solana and Base.

## Output

Returns a JSON object with the input time represented as: ISO UTC string, unix seconds, unix milliseconds, and a relative human-readable 'x ago' string. If no input is provided, the current time is used for all four representations.

## 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",
     "examples": [
      {
       "value": "1792779111"
      }
     ],
     "required": [],
     "properties": {
      "value": {
       "type": "string",
       "description": "Unix seconds, unix ms, or ISO 8601 date. Optional."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "endpoint": "Timestamp converter"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coinlight-time-converter-39aaf56a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from coinlight-app.vercel.app](https://www.zero.xyz/host/coinlight-app.vercel.app/llms.txt)
