# PennyRail Time Diff Seconds

> PennyRail Time Diff Seconds 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-15).

Calculates the number of seconds between two dates

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/time.diff-seconds--seconds-between-dates
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-time-diff-seconds-86f0c073
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bHo_XwxvbiFgu0rNrgNA1

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-diff-seconds-86f0c073 -d '<json body>'
```

Example prompt: How many seconds are there between January 1, 2024 and March 15, 2024?

## When to prefer this

Use this endpoint when you need a precise seconds-based time difference between two dates as a paid microservice call, particularly within x402-compatible agent workflows where per-call micropayment settlement is acceptable and you want a simple, stateless computation without standing up your own date-arithmetic logic.

## Known failure modes

- Missing or malformed date inputs cause a 400-level error
- Invalid date format results in a parsing error response
- Future-to-past ordering may return a negative value or error depending on implementation
- Payment failure (x402) if USDC balance is insufficient for the $0.001 per-call fee

## How this service works

Machine-readable settlement service

## Output

Returns a numeric value representing the total number of seconds between the two provided dates, useful for precise time-delta calculations in scheduling, countdowns, or duration measurement.

## 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-diff-seconds-86f0c073/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)
