calendars — a reasoning module
Calendar rules decided, and dates calculated, as a DKE Python module you compile into your own store. You record years, the reforms that moved a place from one calendar to another and days; it concludes which years the Julian and Gregorian rules disagree about, how many days a reform skipped and which days a place never had, each with its proof and with the premise that failed, and marks such a day without dropping it. It calculates the length of a month, the weekday of a date, Easter, day numbers and the span between two instants, bit for bit as CPython does.
Licence: MIT. Current version: 1.0.0, released in rev 123.
Get it
The whole release, as one archive:
curl -O https://dke.langsyn.com/source/calendars/1.0.0/calendars-1.0.0.tar.gz
Its SHA-256: 346bf8c90d558f42748d21ae912d47f1d6d3b764d219b873e3e269d3bd6afa07.
Or browse version 1.0.0 file by file.
/source/calendars/latest/ always redirects to the current version.
A release's files never change. When the next release supersedes this one, this
version stays served at its URL, marked superseded, so cite the version and the
archive's digest to say exactly which bytes you read, and use latest
for a link that follows each new release.
Current release
- 1.0.0
1 file, released in rev 123