Re: Problem with Calendar library
- To: mathgroup at smc.vnet.net
- Subject: [mg67640] Re: Problem with Calendar library
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Mon, 3 Jul 2006 06:37:51 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On 7/2/06 at 6:27 AM, Jean.Pellegri at wanadoo.fr (Jean.Pellegri) wrote:
><< Miscellaneous`Calendar`
>In[53] := DayOfWeek[{2005, 2, 29}]
>Out[53] = Tuesday
>2005 leap year ???
No. This likely comes about from the way FromDate and ToDate work. That is FromDate allows dates of the form {2005,2,100,0,0,0} which is equivalent to {2005,5,11,0,0,0}. FromDate simply counts 100 days from {2005,2,1}.
So, for your particular case
In[2]:=
ToDate@FromDate@{2005,2,29,0,0,0}
Out[2]=
{2005,3,1,0,0,0.}
That is from Mathematica's standpoint, {2005,2,29,0,0,0} is another way of expressing (2005,3,1,0,0,0}
--
To reply via email subtract one hundred and four