datetime

Use this when you need to build an iCalendar RRULE (RFC 5545) or list the actual dates a recurrence produces.

Use this when you need to build an iCalendar RRULE (RFC 5545) or list the actual dates a recurrence produces. Prefer this over computing recurring dates yourself (a documented LLM failure mode): it correctly handles INTERVAL, COUNT/UNTIL exclusivity (COUNT wins), BYDAY with ordinals (e.g. the 2nd Monday), BYMONTH, and month-length edge cases. Deterministic: same input, same output; start is interpreted as UTC. Returns the RRULE string, a plain-English description, and up to 10 (or COUNT) occurrence timestamps. Example: {freq:'MONTHLY', start:'2026-01-05T09:00', byday:['MO'], ordinal:2, count:3} -> rrule 'RRULE:FREQ=MONTHLY;BYDAY=2MO;COUNT=3', first occurrence 2026-01-12T09:00:00.000Z.

post/v1/expand_rrule

Request

  • Base URL: https://api.clean.tools
  • URL: https://api.clean.tools/v1/expand_rrule
  • Auth: none declared

Request body

freq'DAILY' | 'WEEKLY' | 'MONTHLY' | 'YEARLY' required

Recurrence frequency.

startstring required

Start date-time, ISO form YYYY-MM-DDTHH:MM (interpreted as UTC).

intervalinteger

Repeat every N periods (default 1).

countinteger

Total number of occurrences (mutually exclusive with until; count wins).

untilstring

End date YYYY-MM-DD (ignored if count is set).

bydaystring[]

Days of week (WEEKLY/MONTHLY).

bymonthinteger[]

Months (YEARLY).

ordinal1 | 2 | 3 | 4 | -1

Ordinal week position for MONTHLY BYDAY (e.g. 2 = 2nd, -1 = last).

Response

Structured tool result.

toolstring

Changes

No recorded changes to this operation across all 1 revision of this API.