Calendar`
Calendar`

Islamic

As of Version 10.0, calendar functionality is built into the Wolfram Language »

Islamic

represents the Islamic calendar system.

Details and Options

  • To use Islamic, you first need to load the Calendar Package using Needs["Calendar`"].
  • Islamic is a value for the Calendar option, and can be used as an argument to CalendarChange.
  • This calendar began on {622,7,16} Julian, or {1,1,1} in the Islamic calendar (one date given for the Hegira).

Examples

open allclose all

Basic Examples  (5)

The argument Islamic to CalendarChange converts between Western (Gregorian) dates and Islamic dates. This computes the Islamic date of January 1, 2000:

The Islamic calendar has the following months:

The above date is therefore the 24th of Ramadan, 1420.

The Western date for the beginning of Ramadan of the Islamic year 1420:

The Islamic year has fewer days than the Western year:

The Islamic calendar is purely lunar (time of month corresponds to phase of the moon) but does not keep track of seasons, since there is no leap month. The Islamic calendar moves backward with respect to the Western calendar; for example, the start of Ramadan in successive years:

Applications  (1)

A program that computes the first and last dates of Ramadan for a given Western calendar year for the first Ramadan beginning that year:

Note that Ramadan can overlap January 1, as in 2000:

There is also the possibility that two Ramadans begin in the same Western year, as in 1932. The program returns the first Ramadan beginning that year:

Ramadan of the following Islamic year also began in 1932:

Possible Issues  (1)

Since the names and the numerical order of the Islamic months are not well known in the Western world, it is useful to have the list of names: