# Delx Commerce Date Difference Calculator

> Delx Commerce Date Difference Calculator is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Computes the difference in days and seconds between two ISO-8601 timestamps

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/date-diff?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-date-difference-calculator-1220b2b6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oI9jMuJ1Cs8AFHTORQP6v

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 delx-commerce-date-difference-calculator-1220b2b6 -d '<json body>'
```

Example prompt: How many days and seconds are there between August 4, 2026 at noon UTC and August 10, 2026 at noon UTC?

## When to prefer this

Choose this endpoint when you need a simple, reliable, pay-per-use date difference computation without sign-up overhead, particularly in agentic workflows requiring verifiable delivery and micropayment via USDC on Base or Solana. It is ideal for agents that need to compute durations on demand without maintaining subscription credentials.

## Known failure modes

- Invalid or missing start/end timestamps return an error
- Non-ISO-8601 formatted dates are rejected
- End timestamp earlier than start timestamp may return negative or zero values
- Payment failure via x402 protocol prevents response
- Network timeout or service unavailability

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the original start and end timestamps, the number of whole days between them, the total number of seconds between them, and a schema identifier ('delx/date-diff/v1').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "end": {
   "type": "string",
   "format": "date-time",
   "description": "Ending ISO-8601 timestamp for a date range."
  },
  "start": {
   "type": "string",
   "format": "date-time",
   "description": "Starting ISO-8601 timestamp for a date range."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "end": "2026-08-10T12:00:00+00:00",
  "days": 6,
  "start": "2026-08-04T12:00:00+00:00",
  "schema": "delx/date-diff/v1",
  "seconds": 518400
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-date-difference-calculator-1220b2b6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
