# AgentTools Unix Timestamp Converter

> AgentTools Unix Timestamp Converter is a paid API for AI agents from agenttools-hub.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Converts Unix epoch timestamps to ISO/UTC date strings and vice versa, with automatic millisecond detection and strict validation.

## Facts

- Endpoint: GET https://agenttools-hub.vercel.app/api/v1/converters/unix-timestamp-converter?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-unix-timestamp-converter-062b603f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S-l1WSIKjrDdP1yVTj53X

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 agenttools-unix-timestamp-converter-062b603f
```

Example prompt: What date and time does the Unix timestamp 1700000000 correspond to in UTC? Convert it to an ISO date for me.

## When to prefer this

Use this endpoint when an agent needs a straightforward, cheap, single-call conversion between Unix epoch timestamps and human-readable ISO/UTC dates, especially when automatic millisecond vs. second detection is needed. Prefer it over custom code when the agent environment doesn't have reliable date libraries or when a paid, reliable utility is acceptable.

## Known failure modes

- Invalid or unparseable date string returns a clear error message
- Out-of-range epoch values may be rejected
- Ambiguous formats without clear timezone may be rejected
- Missing required 'value' query parameter returns an error

## How this service works

Convert Unix epoch timestamps to ISO/UTC dates and back. Millisecond timestamps are detected automatically; invalid dates are rejected with clear errors. Use this when an agent needs to epoch seconds ↔ human dates, both directions.

## Output

Returns either a human-readable ISO 8601 / UTC date string (when converting from epoch) or a Unix epoch integer in seconds or milliseconds (when converting from a date string). Invalid inputs are rejected with descriptive error messages.

## 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",
     "required": [
      "value"
     ],
     "properties": {
      "op": {
       "enum": [
        "to_date",
        "to_timestamp"
       ],
       "type": "string",
       "description": "Direction"
      },
      "value": {
       "type": "string",
       "description": "Timestamp or date"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttools-unix-timestamp-converter-062b603f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttools-hub.vercel.app](https://www.zero.xyz/host/agenttools-hub.vercel.app/llms.txt)
