此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.2)

CalendarChange

CalendarChange[{year, month, day}, calendar1, calendar2]
converts the date {year, month, day} given in calendar calendar1 into a date given in calendar calendar2.
CalendarChange[{year, month, day, hour, minute, second}, calendar1, calendar2]
converts the given date {year, month, day, hour, minute, second}.
  • The following settings can be given for calendar1 and calendar2:
GregorianGregorian calendar
JulianJulian calendar
IslamicIslamic calendar
JewishJewish calendar
Needs["Calendar`"]
The Western calendar in current use is the Gregorian calendar. To convert a contemporary Western date to another calendar, use Gregorian for the contemporary Western date.
Israel obtained its independence on May 14, 1948. This finds the Jewish date:
In[2]:=
Click for copyable input
Out[2]=
Because the Jewish calendar has a leap month preceding Passover, Mathematica uses a numbering starting with Nissan, the month of Passover:
In[3]:=
Click for copyable input
Israel's independence was declared on the 5th of Iyar, 5708.
 
Needs["Calendar`"]
This finds the Western date corresponding to the 50th Jewish anniversary:
In[2]:=
Click for copyable input
Out[2]=
 
Needs["Calendar`"]
Between 1582 and 1752, Catholic countries used the Gregorian calendar while Britain and her colonies used the Julian calendar. To convert British and Catholic dates occurring between 1582 and 1752, it is necessary to change calendars from Julian to Gregorian.
George Washington was born February 22nd, 1732. In France, the date was:
In[2]:=
Click for copyable input
Out[2]=
 
Needs["Calendar`"]
Voltaire was born on November 21st, 1694. In Great Britain the date was:
In[2]:=
Click for copyable input
Out[2]=
 
Needs["Calendar`"]
The Russian Orthodox Church still uses the Julian calendar. This finds the Western (Gregorian) date of Greek Orthodox Christmas 2000:
In[2]:=
Click for copyable input
Out[2]=
 
Needs["Calendar`"]
You can find Islamic dates corresponding to Western (Gregorian) dates:
In[2]:=
Click for copyable input
Out[2]=
The Islamic calendar has the following months:
In[3]:=
Click for copyable input
The above date is, therefore, the 24th of Ramadan, 1420.
 
Needs["Calendar`"]
The Western date for the beginning of Ramadan of the Islamic year 1420:
In[2]:=
Click for copyable input
Out[2]=
 
Needs["Calendar`"]
Hours, minutes, and seconds are left unchanged by CalendarChange:
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=