[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/
- [Octave-bug-tracker] [bug #47627] datenum gives wrong result, ignores month, anonymous, 2016/04/05
- [Octave-bug-tracker] [bug #47627] datenum gives wrong result, ignores month,
Rik <=
- [Octave-bug-tracker] [bug #47627] datenum gives wrong result, ignores month, Nicholas Jankowski, 2016/04/05
- [Octave-bug-tracker] [bug #47627] datenum gives wrong result, ignores month, Nicholas Jankowski, 2016/04/05
- [Octave-bug-tracker] [bug #47627] datenum input validation should be stricter, Rik, 2016/04/05
- [Octave-bug-tracker] [bug #47627] datenum input validation should be stricter, Aditya Manglik, 2016/04/09
- [Octave-bug-tracker] [bug #47627] datenum input validation should be stricter, Aditya Manglik, 2016/04/09
- [Octave-bug-tracker] [bug #47627] datenum input validation should be stricter, Aditya Manglik, 2016/04/09
- [Octave-bug-tracker] [bug #47627] datenum input validation should be stricter, Carnë Draug, 2016/04/09
- [Octave-bug-tracker] [bug #47627] datenum input validation should be stricter, Rik, 2016/04/09
- [Octave-bug-tracker] [bug #47627] datenum input validation should be stricter, Aditya Manglik, 2016/04/10
- [Octave-bug-tracker] [bug #47627] datenum input validation should be stricter, Aditya Manglik, 2016/04/10