# AgentTools Unix Timestamp Converter

> AgentTools Unix Timestamp Converter is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Converts Unix epoch timestamps to ISO/UTC date strings and vice versa, with automatic millisecond detection and clear error handling for invalid inputs.

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/converters/unix-timestamp-converter?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-unix-timestamp-converter-f16e79cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R5sszBiq67_i8lkC8Y-qH

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-f16e79cc
```

Example prompt: What date and time does the Unix timestamp 1715000000 correspond to in ISO format? Convert it to a human-readable UTC date.

## When to prefer this

Choose this endpoint when an agent needs a quick, reliable bidirectional conversion between Unix epoch timestamps and ISO/UTC date strings, especially when millisecond timestamps may be present and need automatic detection. It is purpose-built for this single task, returning clean results with descriptive validation errors, making it preferable to general-purpose date libraries or heavier APIs that bundle many features.

## Known failure modes

- Invalid or unparseable date string returns a clear error message
- Out-of-range timestamp values are rejected
- Missing required 'value' query parameter returns an error
- Malformed ISO date strings (e.g. wrong format) are rejected
- Ambiguous or partial dates without time components may not be accepted

## 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/UTC date string (when converting from epoch) or a Unix epoch integer (when converting from a date string). Millisecond timestamps are auto-detected and handled correctly. Invalid or malformed 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-f16e79cc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
