# PennyRail Time Difference Calculator

> PennyRail Time Difference Calculator is a paid API for AI agents from pennyrail.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Computes the difference in seconds between two timestamps

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/time.diff-seconds--time-difference
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-time-difference-calculator-ca712e59
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IZ-bEbUP67_g5t3mgOFk4

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 pennyrail-time-difference-calculator-ca712e59 -d '<json body>'
```

Example prompt: How many seconds are between 2024-06-01T08:00:00Z and 2024-06-01T10:30:00Z?

## When to prefer this

Use this endpoint when you need a simple, metered computation of the elapsed seconds between two timestamps without building the arithmetic yourself, especially in agent workflows that already support x402 micropayment protocols. It is ideal for pay-per-use pipelines where you want deterministic, machine-readable time differences without spinning up local date libraries.

## Known failure modes

- Missing or malformed input timestamps result in an error response
- Invalid datetime format not parseable by the service returns an error
- Network or payment authorization failure (x402) results in a 402 Payment Required response
- Reversed or ambiguous timestamp pairs may return negative values or an error

## How this service works

Machine-readable settlement service

## Output

Returns a numeric value representing the absolute or signed difference in seconds between the two provided timestamps, along with any supporting metadata the service includes in its response object.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-time-difference-calculator-ca712e59/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyrail.vercel.app](https://www.zero.xyz/host/pennyrail.vercel.app/llms.txt)
