help-octave
[Top][All Lists]
Advanced

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

Re: Matcompat's datenum.m weirdness


From: James Howard
Subject: Re: Matcompat's datenum.m weirdness
Date: Wed, 29 Aug 2001 23:34:19 -0400 (EDT)

On Wed, 29 Aug 2001, E. Joshua Rigler wrote:

> Can someone explain the following?
> 
>  octave:240> datenum (1995, 01, 05) 
>  ans = 728664.291666667
>               ^^^^^^^^^
> 
> In particular, why is there a fractional day?  I included no hours,

Without a lot of evidence, I think it is a timezone issue.  Set your
timezone to GMT before starting Octave and this should work.  Or, run
datenum(1995,1,5,17,0,0) because Colorado is seven hours behind GMT (I am
in DC and we are five back).

Jamie



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