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

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

[Octave-bug-tracker] [bug #43753] datevec returns negative dates with in


From: Nir Krakauer
Subject: [Octave-bug-tracker] [bug #43753] datevec returns negative dates with integer datenum
Date: Fri, 05 Dec 2014 12:55:16 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36

Follow-up Comment #3, bug #43753 (project octave):

A more elegant demonstration of the problem is


[datevec((datenum([2013 6 1]))); datevec((datenum([2013 6 18])))]
   2013      6      1      0      0      0
   2013      6     18      0      0      0
[datevec(int64(datenum([2013 6 1]))); datevec(int64(datenum([2013 6 18])))]
  2013     6     2     0     0     0
  2013      7    -12      0      0      0



Following on Avinoam's suggestions, I prepared a simple change that fixes and
tests for these problems, attached.

(file #32599, file #32600)
    _______________________________________________________

Additional Item Attachment:

File name: datevec.m                      Size:10 KB
File name: datevec.patch                  Size:0 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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