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 converts date string incorrect


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #36954] datenum converts date string incorrectly during DST start
Date: Fri, 30 Jun 2017 17:42:58 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

Follow-up Comment #13, bug #36954 (project octave):

Adding 2 calls to regexprep and a call to strftime in the critical path of
datevec seems like it might add some overhead to every datenum / datevec call,
whether or not they are affect. I'm interested in timings with and without
this patch.

When looking at bug #51340, I wondered if we might add a parameter to strptime
to indicate that it should ignore the local time zone internally.

Another option might be to 'putenv ("TZ", "UTC0")' for the duration of this
operation, and restore it to either unset or previous value. But I'm uncertain
on the safety and raciness of setting / unsetting user environment variables
for sections of code like this.

    _______________________________________________________

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]