# WritersLogic Calendar Converter

> WritersLogic Calendar Converter is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Converts dates between Gregorian, Hebrew, Persian, Ethiopian, and multiple Hijri calendar systems, and computes Western and Orthodox Easter with optional moveable feasts for a given year range.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/calendar-convert?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-calendar-converter-e94673ad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JIkJdnJ1bNRUdld3pJXkC

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 writerslogic-calendar-converter-e94673ad -d '<json body>'
```

Example prompt: Convert March 15, 2025 (Gregorian) to Hebrew, Persian, Ethiopian, and all Hijri variants, and flag if any Hijri variants disagree on the day.

## When to prefer this

Use this endpoint when you need authoritative, multi-variant calendar conversion between Gregorian and Hebrew, Persian, Ethiopian, or Islamic calendars, especially when you need Hijri variant disambiguation or disagreement detection. Also use it for computing Western and/or Orthodox Easter dates with moveable feasts across multiple years. It is better than generic date libraries when you need explicit Hijri variant labeling (Umm al-Qura vs tabular civil vs astronomical) and disagreement flagging, or when you need both computus traditions for Easter.

## Known failure modes

- Date out of supported range (1900–2100 Gregorian) returns an error
- Invalid calendar enum value rejected
- Hijri variant disagreement flagged rather than silently resolved
- Missing required field (date or from) causes validation error
- Conflicting input (both date and from supplied) rejected
- Easter mode requires years array; omitting it returns an error
- Year value outside 1583–2999 range for Easter mode rejected

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

Returns the input date expressed in each requested target calendar (year, month, day, and calendar name), Hijri variant labels (Umm al-Qura, tabular civil, tabular astronomical-epoch, ICU astronomical) with a flag when variants disagree, or for Easter mode a list of Western and Orthodox Easter dates per year with optional moveable feast dates (Ash Wednesday, Good Friday, Ascension, Pentecost, Trinity Sunday, Corpus Christi where applicable). Notes that Hebrew/Hijri days start at sunset, not midnight, and that Islamic observance dates may differ from computed dates.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "array",
   "items": {
    "enum": [
     "hebrew",
     "persian",
     "ethiopic",
     "islamic-umalqura",
     "islamic-civil",
     "islamic-tbla",
     "islamic-icu",
     "hijri-all"
    ],
    "type": "string"
   },
   "maxItems": 8,
   "description": "Calendars to convert into; hijri-all returns Umm al-Qura, tabular civil and ICU astronomical (add islamic-tbla explicitly; it differs from civil by its epoch) and fails when they disagree. Default: all non-Hijri plus hijri-all."
  },
  "date": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
   "maxLength": 10,
   "description": "convert: Gregorian date. Exactly one of date or from."
  },
  "from": {
   "type": "object",
   "required": [
    "calendar",
    "year",
    "month",
    "day"
   ],
   "properties": {
    "day": {
     "type": "integer",
     "maximum": 30,
     "minimum": 1
    },
    "year": {
     "type": "integer",
     "maximum": 9999,
     "minimum": 1
    },
    "month": {
     "type": "integer",
     "maximum": 13,
     "minimum": 1,
     "description": "Numeric month. Hebrew follows ICU: Tishri=1; leap years have Adar I=6, Adar II=7, Nisan=8 ... Elul=13; common years have Adar=6, Nisan=7 ... Elul=12."
    },
    "calendar": {
     "enum": [
      "hebrew",
      "persian",
      "ethiopic",
      "islamic-umalqura",
      "islamic-civil",
      "islamic-tbla",
      "islamic-icu"
     ],
     "type": "string"
    }
   }
  },
  "mode": {
   "enum": [
    "convert",
    "easter"
   ],
   "type": "string"
  },
  "years": {
   "type": "array",
   "items": {
    "type": "integer",
    "maximum": 2999,
    "minimum": 1583
   },
   "maxItems": 60,
   "minItems": 1,
   "description": "easter: Gregorian years."
  },
  "feasts": {
   "type": "boolean",
   "description": "easter: also list Ash Wednesday, Good Friday, Ascension, Pentecost and other moveable feasts."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-calendar-converter-e94673ad/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
