This module provides API to other modules.
This module has two goals:
- To enable other modules to "talk" in various native calendars, e.g. the Hebrew calendar, the Hijri calendar.
- To provide information about holidays.
The API is centered around the NativeCalendar abstract class. Currently this module is a work in progress and only two derived classes are provided: HebrewCalendar and HijriCalendar. Of course, my intention is that we provide more derived classes, e.g. PersianCalendar.
Since this module provides information about holidays, it is useful for users of the Gregorian calendar as well. Support for national holidays --e.g., the 4th of July-- is planned as well, probably via support for PEAR's Holidays package.
Currently it is not planned for this module to have an extensive user interface, because its purpose is to provide services to other modules. However, to aid in debugging and evaluating, it does have a page that overlays a native calendar over a Gregorian one.
I haven't yet created a release for this module. You may download it using cvs:
$ cvs -d :pserver:anonymous:email@example.com:/cvs/drupal-contrib export -DNOW -d holidays contributions/modules/holidays
If you wish to have a quick look at the source code, see 'Browse the CVS repository', below. Specifically, look into the 'lib' folder.