# 2s.io Time Parse

> 2s.io Time Parse is a paid API for AI agents from 2s.io, paid per call via x402, $0.0025/call, status unknown (last checked 2026-09-14).

Parses a timestamp or date string into canonical time representations, optionally converting to a local timezone

## Facts

- Endpoint: GET https://2s.io/api/time/parse
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-time-parse-127bab02
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JXrjG1_xo622MEH4ZkkFG

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 2s-io-time-parse-127bab02
```

Example prompt: Parse the timestamp 1750000000 into all standard date formats and also give me the local wall-clock time in America/Chicago.

## When to prefer this

Use this endpoint when an agent needs to normalize, decompose, or convert timestamps or date strings across formats and timezones without bundling any date library. Ideal for agents that need ground-truth calendar data (ISO week, day-of-year, DST-correct local time) from arbitrary timestamp inputs, especially when a zero-dependency external call is preferable to in-process date math.

## Known failure modes

- Invalid or unparseable date string returns an error
- Unrecognized IANA timezone string returns an error
- Input exceeding 100 characters is rejected by schema validation
- Missing required 'input' query parameter returns a 400-level error

## How this service works

Parse a timestamp or date string into canonical forms — zero-dependency. Accepts unix seconds/millis or any standard date string (ISO-8601, RFC-2822, etc.). Returns UTC ISO, unix seconds + millis, RFC-2822, calendar components (year/month/day/hour/minute/second/weekday), ISO weekday, ISO year+week, and day-of-year. Pass an IANA timezone (tz) to also get the DST-correct local wall-clock time and UTC offset. The reliable time primitive for agents normalizing or converting timestamps.

## Output

Returns a JSON object with the UTC ISO string, unix seconds and milliseconds, RFC-2822 string, full calendar breakdown (year, month, day, hour, minute, second, weekday), ISO weekday number, ISO year+week, day-of-year, and — if a timezone was supplied — the DST-correct local wall-clock time and UTC offset for that timezone.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "tz": {
       "type": "string",
       "maxLength": 64,
       "minLength": 2,
       "description": "Optional IANA timezone for local conversion, e.g. America/New_York."
      },
      "input": {
       "type": "string",
       "maxLength": 100,
       "minLength": 1,
       "description": "Timestamp or date string, e.g. \"2026-06-21T15:30:00Z\" or 1750000000."
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-time-parse-127bab02/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
