|
SOLUTIONS
|
CALENDAR 程序包 符号
DateQ
date given in long form
.
更多信息更多信息
- To use
, you first need to load the Calendar Package using Needs["Calendar`"]. - The following options can be given:
-
Calendar Automatic specify which calendar system to use - The default calendar is the usual Western (American) calendar, but can be changed with the Calendar option.
- Valid settings for Calendar are Automatic, Julian, Gregorian, Islamic, and Jewish.
范例范例打开所有单元关闭所有单元
基本范例 (5)基本范例 (5)
| In[1]:= |
recognizes ordinary Western dates:
| In[2]:= |
| Out[2]= |
| In[1]:= |
will identify leap years. The year 2000 was a leap year:
| In[2]:= |
| Out[2]= |
| In[1]:= |
The year 1900 was not a leap year:
| In[2]:= |
| Out[2]= |
| In[1]:= |
By default, Mathematica uses the standard Western (British/American) calendar. The British/American calendar applies the Julian calendar to dates before 1752 and the Gregorian calendar after:
| In[2]:= |
| Out[2]= |
| In[3]:= |
| Out[3]= |
| In[1]:= |
The default British/American calendar deletes the dates September 3 to 13, 1752:
| In[2]:= |
| Out[2]= |
| In[3]:= |
| Out[3]= |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
