|
SOLUTIONS
|
CALENDAR PACKAGE SYMBOL
DaysBetween
gives the number of days between the dates
and
.
gives the number of days between the given dates.
DetailsDetails
- 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 American calendar, but can be changed with the Calendar option.
- Valid settings for
are Automatic, Julian, Gregorian, Islamic, and Jewish.
ExamplesExamplesopen allclose all
Basic Examples (7)Basic Examples (7)
| In[1]:= |
The number of days between consecutive days is 1:
| In[2]:= |
| Out[2]= |
| In[1]:= |
The number of days between the same date is 0:
| In[2]:= |
| Out[2]= |
| In[1]:= |
If the second date is earlier than the first date, then a negative result is returned:
| In[2]:= |
| Out[2]= |
| In[1]:= |
John F. Kennedy's presidency is referred to as lasting 1000 days:
| In[2]:= |
| Out[2]= |
| In[1]:= |
Hours, minutes, and seconds do not affect
:
| In[2]:= |
| Out[2]= |
| In[1]:= |
In the default (Western/American) calendar, 11 days were deleted in September 1752:
| In[2]:= |
| Out[2]= |
| In[1]:= |
In the default (Western/American) calendar, 1752 had 355 days:
| In[2]:= |
| Out[2]= |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
