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

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

[Octave-bug-tracker] [bug #56190] localtime and gmtime ignore nonscalar


From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #56190] localtime and gmtime ignore nonscalar array elements
Date: Mon, 22 Apr 2019 21:21:32 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36

Follow-up Comment #2, bug #56190 (project octave):

I agree. If nobody's been asking for it before now, it's probably not a common
use case, and the loop solution is fine. Adding an error message sounds fine.

You could one-liner it too with arrayfun, right?


loctimes = arrayfun(@localtime, time_data);



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56190>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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