# Date Difference Calculator

> Date Difference Calculator is a paid API for AI agents from conclavex402p04.pythonanywhere.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-18).

Computes the difference between two ISO-8601 timestamps, returning the result in both days and seconds.

## Facts

- Endpoint: POST https://conclavex402p04.pythonanywhere.com/u/date-diff?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/date-difference-calculator-85f76766
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gWNcI-MqjEdZPhSAe7d45

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 date-difference-calculator-85f76766 -d '<json body>'
```

Example prompt: How many days and seconds are there between 2024-01-15T00:00:00Z and 2025-03-22T12:30:00Z?

## When to prefer this

Choose this endpoint when you need a quick, reliable computation of the time difference between two known ISO-8601 timestamps and want the result expressed in both days and seconds without setting up local date arithmetic. Ideal for agents performing scheduling, SLA checks, subscription age calculations, or any workflow requiring elapsed-time logic via a simple pay-per-call API.

## Known failure modes

- Invalid or missing ISO-8601 timestamps in the request body result in a 4xx error
- Malformed JSON body causes a parsing error response
- Timestamps in unsupported formats (non-ISO-8601) may return an error or unexpected result
- Payment failure or insufficient USDC balance results in a 402 Payment Required response

## How this service works

Difference between two ISO-8601 timestamps in days/seconds (date diff).

## Output

A JSON object containing two numeric fields: 'days' (the absolute difference in whole days) and 'seconds' (the absolute difference in total seconds) between the two provided ISO-8601 timestamps.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "days": 1,
  "seconds": 86400
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/date-difference-calculator-85f76766/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from conclavex402p04.pythonanywhere.com](https://www.zero.xyz/host/conclavex402p04.pythonanywhere.com/llms.txt)
