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

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

[Octave-bug-tracker] [bug #47627] datenum gives wrong result, ignores mo


From: Rik
Subject: [Octave-bug-tracker] [bug #47627] datenum gives wrong result, ignores month
Date: Tue, 05 Apr 2016 17:10:15 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Update of bug #47627 (project octave):

                  Status:                    None => Need Info              

    _______________________________________________________

Follow-up Comment #1:

Do you have access to Matlab and can you test there as well?

Second, according to the documentation for datestr, your format is invalid. 
The correct designation for years, months, and days is lower case.  


datenum (2015, 3, 31)
ans =  736054
datenum (2015, 4, 1)
ans =  736055
% Using lowercase yyyy, mm, dd as described in datestr
datenum('2015-03-31 00:00','yyyy-mm-dd HH:MM')
ans =  736054
datenum('2015-04-01 00:00','yyyy-mm-dd HH:MM')
ans =  736055


It does look as if the input validation could be improved in Octave.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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