# Datetime Format Tool (Time Formatter)

> Datetime Format Tool (Time Formatter) is a paid API for AI agents from lin-desk-x402.lindesk.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Formats a datetime string, Unix timestamp, or ISO date into a human-readable string using a specified timezone and pattern.

## Facts

- Endpoint: GET https://lin-desk-x402.lindesk.workers.dev/v1/timetools/format?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datetime-format-tool-time-formatter-34f82cb8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-ZFvsA9Ic3WbYBYiH-nCC

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 datetime-format-tool-time-formatter-34f82cb8
```

Example prompt: Can you format the datetime '2026-10-03T18:00:00Z' into a readable string using the Asia/Macau timezone?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call datetime formatting service with no API key or signup. It is ideal for agents that occasionally need to format timestamps or ISO strings into human-readable output with timezone awareness, without integrating a full datetime library or managing credentials.

## Known failure modes

- Missing required 'input' query parameter returns an error
- Invalid IANA timezone string may produce unexpected or error results
- Malformed datetime string may fail to parse correctly
- Empty input string may only work for diff operations (a,b parameters), not single format calls

## How this service works

Pay-per-call API for AI agents: turn any public web page or PDF into clean, LLM-ready Markdown. $0.002 per call in USDC on Base via x402. No API key, no signup.

## Output

Returns a JSON object with the operation name ('format'), metadata including input/output character counts and elapsed milliseconds, and the formatted datetime string as the result (e.g. '2026-10-03 18:00').

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "tz": {
       "type": "string",
       "description": "IANA timezone, e.g. Asia/Tokyo"
      },
      "input": {
       "type": "string",
       "description": "Datetime / unix / ISO string (empty for diff with a,b)"
      },
      "pattern": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "op": {
       "type": "string"
      },
      "meta": {
       "type": "object",
       "properties": {
        "chars_in": {
         "type": "integer"
        },
        "chars_out": {
         "type": "integer"
        },
        "elapsed_ms": {
         "type": "integer"
        }
       }
      },
      "result": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "op": "format",
  "meta": {
   "chars_in": 20,
   "chars_out": 16,
   "elapsed_ms": 0
  },
  "result": "2026-10-03 18:00"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datetime-format-tool-time-formatter-34f82cb8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lin-desk-x402.lindesk.workers.dev](https://www.zero.xyz/host/lin-desk-x402.lindesk.workers.dev/llms.txt)
