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

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

[Octave-bug-tracker] [bug #50508] datenum() crashes for non-integer mont


From: Rik
Subject: [Octave-bug-tracker] [bug #50508] datenum() crashes for non-integer month arrays
Date: Wed, 15 Mar 2017 16:38:56 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #8, bug #50508 (project octave):

I think everything is working correctly.  For the last example, it appears
that datestr has chosen a different output format because the hour field is
precisely aligned at 00 and 12.  If I force datestr to use a long format
(format 0) then this is what I get.


datestr(datenum(2000:2004,2.5,1, 12,0,0), 0)
ans =

16-Feb-2000 00:00:00
15-Feb-2001 12:00:00
15-Feb-2002 12:00:00
15-Feb-2003 12:00:00
16-Feb-2004 00:00:00




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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