DaysPlus


gives the date n days after the date .


gives the date n days after the date .

更多信息更多信息

范例范例打开所有单元关闭所有单元

基本范例 (2)基本范例 (2)

In[1]:=
Click for copyable input

Computing the next day:

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

To compute an earlier date, a negative second argument is used:

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

Hours, minutes, and seconds are retained by :

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