From help-octave-request at bevo dot che dot wisc dot edu Thu Nov 27 00:39:52 2003 Subject: datenum off by one? From: To: 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 -------------------------------------------------------------