help-octave
[Top][All Lists]
Advanced

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

Re: datenum off by one?


From: Dmitri A. Sergatskov
Subject: Re: datenum off by one?
Date: Wed, 26 Nov 2003 23:50:10 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

address@hidden wrote:
Hi does anyone know why this is happening?


datestr(719529)

ans = 01-Jan-1970

datenum(1970,01,01)

ans = 719528


Works for me (TM):

octave:1> datenum(1970,01,01)
ans = 719529
octave:2> datestr(719529)
ans = 01-Jan-1970

GNU Octave, version 2.1.50 (i686-pc-linux-gnu).
octave-forge-2003.06.02

Regards,

Dmitri.



-------------------------------------------------------------
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]