Crate calendrical_calculations

source ยท
Expand description

Calendrical calculations

This crate implements algorithms from Calendrical Calculations by Reingold & Dershowitz, Cambridge University Press, 4th edition (2018) as needed by ICU4X.

Most of these algorithms can be found as lisp code in the book or on GithHub.

The primary purpose of this crate is use by ICU4X, however if non-ICU4X users need this we are happy to add more structure to this crate as needed.

Modulesยง

  • astronomy ๐Ÿ”’
    This file contains important structs and functions relating to location, time, and astronomy; these are intended for calender calculations and based off Calendrical Calculations by Reingold & Dershowitz.
  • Chinese-like lunar calendars (Chinese, Dangi)
  • The Coptic calendar
  • error ๐Ÿ”’
    Error handling
  • The ethiopian calendar
  • The Hebrew calendar
  • Alternate, more efficient structures for working with the Hebrew Calendar using the keviyah and Four Gates system
  • Additional math helpers
  • Various islamic lunar calendars
  • The ISO calendar (also usable as Gregorian)
  • The Julian calendar
  • The persian calendar
  • Representation of Rata Die (R.D.) dates, which are represented as the number of days since ISO date 0001-01-01.