help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

datenum off by one?


From: Nick.Potter
Subject: datenum off by one?
Date: Wed, 26 Nov 2003 20:57:56 -0600

Hi does anyone know why this is happening?

>> datestr(719529)
ans = 01-Jan-1970
>> datenum(1970,01,01)
ans = 719528

>From help datenum:
 - Function File:  datenum('date' [, P])
     Returns the specified local time as a number of days since Jan 1,
     0000.  By this reckoning, Jan 1, 1970 is day number 719529.  The

Is it anything to do with time zones?

Thanks, Nick

mailto: Nicholas dot Potter at csiro dot au



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]