octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #51340] datevec jump hour on 29/03/2009 02:*


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #51340] datevec jump hour on 29/03/2009 02:*
Date: Thu, 29 Jun 2017 16:28:32 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #11, bug #51340 (project octave):

correcting my earlier comment #4, my timezone behaves similarly to Mikes,
although I don't have a TZ env variable.  Don't know what the equivalent is in
Windows. (local TS is EDT/EST, UTC-4/-5)


>> getenv TZ
ans =
>>  datevec ("2017-03-12 02:00:01", fmt)
error: 'fmt' undefined near line 1 column 34
>> fmt = "yyyy-mm-dd HH:MM:SS";
>>  datevec ("2017-03-12 02:00:01", fmt)
ans =

   2017      3     12      3      0      1


If we want to consider compatibility, the Matlab 2017a behavior seems to
ignore this issue:

>> fmt = 'yyyy-mm-dd HH:MM:SS'
fmt =
    'yyyy-mm-dd HH:MM:SS'
>> datevec ('2017-03-12 02:00:01', fmt)
ans =
  Columns 1 through 5
        2017           3          12           2           0
  Column 6
           1


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51340>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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