* Package name : libcalendars
Version : 1.1.0
Upstream Contact: Soroush Rabiei <soroush.rabiei@gmail.com>
* URL : https://github.com/soroush/libcalendars
* License : GPL-3+
Programming Lang: C
Description : arithmetic for Gregorian, Hijri, Hebrew and other calendars
libcalendars is a small C library with no dependencies beyond libc and
libm, covering eight calendars behind one interface. It defines no data
types of its own, so it can sit behind an existing date and time API
rather than replacing one.
.
Compared to what is already in Debian:
.
* libicu covers Islamic, Hebrew and Persian calendars, but is a large
C++ library with a substantial data payload and is awkward to call
from plain C. It has no Babylonian, ancient Egyptian or Revised
Julian calendar. Its Persian implementation uses the 33-year cycle,
documented as valid from 1925 to roughly 2090 CE.
* libitl handles Hijri conversion but none of the other calendars here.
* jcal/libjalali covers the Solar Hijri calendar only; last upstream
release [DATE].
.
For the Solar Hijri calendar, no arithmetic rule reproduces the official
Iranian calendar exactly, since the official calendar is fixed by
observation of the vernal equinox. The library uses the 2820-year cycle
with a correction table for the years where that rule diverges from the
published official calendar, and the test suite checks the result
against a table of official leap years. The derivation of the table is
documented in the source.
.
I am the upstream author of this library and use it in my own projects.
There is no reverse dependency in Debian yet. I intend to maintain the
package myself and need a sponsor; I will look for one via
debian-mentors once the packaging is ready. Packaging will be hosted on
salsa.debian.org, and I would welcome co-maintainers.