|
From: | Carine Simon |
Subject: | datenum |
Date: | Fri, 10 Dec 2004 05:35:22 -0600 |
Hi,
I am using the function datenum written by Paul Kienzle (Copyright 2000) but I’ve got some trouble with it.
Indeed, when I type datenum(2000,1,1), I get 730485 whereas with Matlab, I get 730486.
More important, in the application I am using, I’ve got the following lines:
da=clock;
DayOfYear=datenum(0,da(2),da(3));
In Matlab as in Octave, the first line does work as it gives: da(2) = 12, da(3)=10.
Now, if as expected, DateOfYear=345 with Matlab, I get DateOfYear=-1 with Octave.
So, would you know where it comes from?
Thanks,
Carine.
[Prev in Thread] | Current Thread | [Next in Thread] |