Calendar


is an option for calendar functions that specifies which calendar system to use.

DetailsDetails

  • To use , you first need to load the Calendar Package using .
  • Calendar->system specifies to use calendar system system.
  • The following settings can be given:
  • GregorianGregorian calendar
    JulianJulian calendar
    IslamicIslamic calendar
    JewishJewish calendar
  • With Calendar->Automatic, the Julian calendar is used before September 3, 1752, and the Gregorian calendar after September 13, 1752.

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

In[1]:=
Click for copyable input

Compute the number of days in the Islamic year 1420:

In[2]:=
Click for copyable input
Out[2]=
In[1]:=
Click for copyable input

Compute the number of days in the Jewish year 5760:

In[2]:=
Click for copyable input
Out[2]=
In[1]:=
Click for copyable input

In the Julian calendar, the year 1900 was a leap year:

In[2]:=
Click for copyable input
Out[2]=

This is not true in the standard (Gregorian) Western calendar:

In[3]:=
Click for copyable input
Out[3]=
New to Mathematica? Find your learning path »
Have a question? Ask support »