Calendrical.UnsupportedDateRangeError exception (Calendrical v0.13.0)

Copy Markdown

Exception raised when a date lies outside the range a calendar can compute.

Astronomical calendars depend on underlying solar or lunar computations that are only valid over a bounded span of years — the vernal equinox calculation used by the Persian calendar, or the ephemeris data used by the observational Islamic calendars. Dates outside that span raise this error rather than crashing inside the underlying computation.

Fields

  • :calendar — the calendar module that could not compute the date.

  • :value — the out-of-range date, year, or day count as given.

  • :range — a description of the supported range.