|
From: | Claudio Belotti |
Subject: | Re: datenum |
Date: | Fri, 10 Dec 2004 17:00:39 +0100 |
User-agent: | Mozilla Thunderbird 0.8 (X11/20040926) |
Carine, this bug has been around sometime but is reported as closed: http://sourceforge.net/tracker/?group_id=2888&atid=102888&func=detail&aid=992400 http://sourceforge.net/tracker/?group_id=2888&atid=102888&func=detail&aid=856975 In my case: octave2.1 2.1.60 octave-forge 2004.09.09 datenum(2000,1,1) give 730486 Maybe your version is too old. Claudio Carine Simon wrote:
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.
------------------------------------------------------------- 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 -------------------------------------------------------------
[Prev in Thread] | Current Thread | [Next in Thread] |