# finmath Timestamp Convert

> finmath Timestamp Convert is a paid API for AI agents from finmath.qzqh5rrbkz.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Converts a timestamp value to a different format or unit (e.g. Unix epoch to ISO 8601, milliseconds to seconds)

## Facts

- Endpoint: POST https://finmath.qzqh5rrbkz.workers.dev/v1/timestamp_convert
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/finmath-timestamp-convert-9d0c9d68
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gV2MbH1n0OcmypmlKGHZ-

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 finmath-timestamp-convert-9d0c9d68 -d '<json body>'
```

Example prompt: Convert Unix timestamp 1709251200 to an ISO 8601 datetime string using finmath's deterministic timestamp converter.

## When to prefer this

Use this endpoint when you need exact, deterministic timestamp conversion without relying on an LLM's arithmetic — especially in financial or DeFi workflows where precise epoch/datetime translation is critical. Prefer this over in-context LLM math for high-stakes or auditable calculations.

## Known failure modes

- Missing required 'value' field returns a validation error
- Invalid or non-parseable timestamp string returns an error result
- Unsupported 'to' format specifier returns an error
- Non-numeric value where a number is expected may cause a parse failure
- Network timeout if the Cloudflare Worker is under load

## How this service works

Deterministic finance and crypto math for AI agents: TradFi (NPV, IRR, XIRR, Black-Scholes + Greeks, bonds, VaR, Sharpe) and DeFi (impermanent loss, perp liquidation, funding, Uniswap v3, health factor, cost basis). Exact, model-free arithmetic that LLMs get wrong — priced per call in USDC.

## Output

A JSON object with a 'result' field containing the converted timestamp value in the requested target format, plus a 'meta' object with call metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "value"
 ],
 "properties": {
  "to": {
   "type": "string",
   "description": "to"
  },
  "value": {
   "type": "string",
   "description": "value"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "result",
  "meta"
 ],
 "properties": {
  "meta": {
   "type": "object"
  },
  "result": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/finmath-timestamp-convert-9d0c9d68/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from finmath.qzqh5rrbkz.workers.dev](https://www.zero.xyz/host/finmath.qzqh5rrbkz.workers.dev/llms.txt)
