# Date Difference Calculator

> Date Difference Calculator is a paid API for AI agents from conclavex402.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://conclavex402.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-7d90f532
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6uWY3BHlDdgwIM7RvTtxt

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-7d90f532 -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when you need a simple, fast, pay-per-call computation of the difference between two ISO-8601 timestamps without setting up any local date library. Ideal for agents that occasionally need date arithmetic without maintaining dependencies or when running in environments where date libraries are unavailable.

## Known failure modes

- Invalid or malformed ISO-8601 timestamp returns a 4xx error
- Missing required body fields causes a validation error
- End timestamp earlier than start timestamp may return negative values or an error
- Non-UTC timezone handling may cause unexpected results if offsets are not specified

## How this service works

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

## Output

A JSON object with two fields: 'days' (integer number of days between the two timestamps) and 'seconds' (integer number of seconds between the two timestamps). Example: {"days": 1, "seconds": 86400}.

## 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-7d90f532/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from conclavex402.pythonanywhere.com](https://www.zero.xyz/host/conclavex402.pythonanywhere.com/llms.txt)
