Calendrical.UnsupportedDateRangeError exception (Calendrical v2.4.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: Astro answers for 50,000 years either side of 2000. 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 — what bounds the supported range, as data: {:from, year} for the years from year on, written in the message as a whole translated sentence. Any other value, such as a range of years, is written as it is given.