# CoCo Timestamp Converter

> CoCo Timestamp Converter is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Converts a value (e.g. a date/time string) into multiple timestamp formats including Unix epoch, ISO 8601 UTC, RFC 2822, ISO week, day of week, and day of year.

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/timestamp?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-timestamp-converter-2abdb868
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WePu5sm8371OeIq2yUO8e

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 coco-timestamp-converter-2abdb868
```

Example prompt: Convert October 18, 2026 at noon UTC into all its timestamp formats — I need the Unix epoch in seconds and milliseconds, the RFC 2822 string, and the ISO week number.

## When to prefer this

Choose this endpoint when you need a single datetime value converted into all common timestamp formats simultaneously (Unix seconds, Unix ms, ISO 8601, RFC 2822, ISO week, day-of-week, day-of-year) in one lightweight call. Especially useful when building email headers, scheduling systems, or calendaring tools that need multiple representations at once.

## Known failure modes

- Missing or unparseable 'value' query parameter may return an error or unexpected result
- Ambiguous date strings (e.g. '01/02/03') may be misinterpreted
- Out-of-range dates may produce overflow or error
- No value provided may return current-time defaults or an error

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

A JSON object containing the input value expressed as: unix (seconds since epoch), unix_ms (milliseconds since epoch), iso_utc (ISO 8601 UTC string), rfc2822 (RFC 2822 formatted string), iso_week (ISO calendar week number), day_of_week (name), and day_of_year (integer).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "value": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "unix"
     ],
     "properties": {
      "unix": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "unix": 1792324800,
  "iso_utc": "2026-10-18T12:00:00+00:00",
  "rfc2822": "Sun, 18 Oct 2026 12:00:00 +0000",
  "unix_ms": 1792324800000,
  "iso_week": 42,
  "day_of_week": "Sunday",
  "day_of_year": 291
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-timestamp-converter-2abdb868/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
