[Top][All Lists]

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

[Octave-bug-tracker] [bug #55650] Time Zone is not stable with function

From: Dave Schaack
Subject: [Octave-bug-tracker] [bug #55650] Time Zone is not stable with function NOW (at least)
Date: Tue, 5 Feb 2019 18:32:19 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0


                 Summary: Time Zone is not stable with function NOW (at least)
                 Project: GNU Octave
            Submitted by: dschaack
            Submitted on: Tue 05 Feb 2019 11:32:17 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.1
        Operating System: Microsoft Windows



I'm a new user of Octave, but a long time user of Matlab.  For the first time
ever, I have need of time handling capabilities.  I immediately ran into this
very apparent problem.  Start Octave, and type in the following:

now  %Do it again, just to see that the result is consistent
days = datenum(datestr(now))
now  % Result changes to a different time zone!

Here is what I got:

>> now
ans =  737461.66489
>> now
ans =  737461.66493
>> days = datenum(datestr(now))
days =  737461.66510
>> now
ans =  737461.95683

What happened there at the end is that the local time used by Octave changed
from my correct local time to GMT time!


Reply to this item at:


  Message sent via Savannah

reply via email to

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