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

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

[Octave-bug-tracker] [bug #36954] datenum / datevec convert date-time st


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #36954] datenum / datevec convert date-time string incorrectly during hour lost to DST
Date: Wed, 23 Aug 2017 03:46:08 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Update of bug #36954 (project octave):

                  Status:             In Progress => Patch Submitted        

    _______________________________________________________

Follow-up Comment #22:

Here is one case that breaks the approach in this patch:


>> getenv TZ
ans = America/Caracas
>> datevec ('2016-05-01 02:25:00')
ans =

   2016      5      1      2     25      0

>> datevec ('2016-05-01 02:30:00')
ans =

   2016      5      1      3      0      0

>> datevec ('2016-05-01 02:40:00')
ans =

   2016      5      1      3     10      0



Here is another case


>> getenv TZ
ans = Australia/LHI
>> datevec ('2017-10-01 01:50:00')
ans =

   2017     10      1      1     50      0

>> datevec ('2017-10-01 02:00:00')
ans =

   2017     10      1      2     30      0

>> datevec ('2017-10-01 02:10:00')
ans =

   2017     10      1      2     40      0

>> datevec ('2017-10-01 02:20:00')
ans =

   2017     10      1      2     50      0

>> datevec ('2017-10-01 02:30:00')
ans =

   2017     10      1      2     30      0



Source: https://www.timeanddate.com/time/time-zones-interesting.html

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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