# centralcity.ai Date Difference Calculator

> centralcity.ai Date Difference Calculator is a paid API for AI agents from centralcity.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-19).

Computes the time difference between two dates, returning the span in days, weeks, and calendar years/months/days.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_4o7n7sgzdayxp2wv?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/centralcity-ai-date-difference-calculator-d11b7ddd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I8RMAdp9ovYP6ZUYuaVvh

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 centralcity-ai-date-difference-calculator-d11b7ddd -d '<json body>'
```

Example prompt: How many days, weeks, and years/months/days are there between 2020-03-15 and 2024-11-01?

## When to prefer this

Choose this endpoint when you need a precise, multi-unit breakdown of the duration between two specific calendar dates — particularly when you need days, weeks, AND a human-readable years/months/days decomposition all in one call. It is better than a simple subtraction utility when the calendar-aware breakdown (accounting for varying month lengths and leap years) is required.

## Known failure modes

- Invalid date format (not YYYY-MM-DD) returns a validation error
- Dates outside the range year 1–9999 are rejected
- Missing required 'from' or 'to' field causes a request error
- 'from' date after 'to' date may return a negative or zero result depending on implementation

## How this service works

The time between two dates: days, weeks, and calendar years, months and days.

## Output

Returns the time difference between the two provided dates expressed as: total number of days, total number of weeks, and a broken-down calendar representation of years, months, and days.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
   "description": "The second date, YYYY-MM-DD (years 1 to 9999)."
  },
  "from": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
   "description": "The first date, YYYY-MM-DD (years 1 to 9999)."
  }
 }
}
```

## More

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