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

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

[Octave-bug-tracker] [bug #50673] datestr truncates fractional minutes r


From: Lars Kindermann
Subject: [Octave-bug-tracker] [bug #50673] datestr truncates fractional minutes rather than rounding
Date: Wed, 29 Mar 2017 17:33:35 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

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

Perhaps datestr() should round the serial date to milliseconds before
conversion. At the moment it looks pretty strange when including the
milliseconds in the format: 


etime = datenum ('1:00') - datenum ('0:55')
etime =  0.0034722

>> datestr(etime)
ans =  0:04 AM

>> datestr(etime,'HH:MM:SS.FFF')
ans = 00:04:59.1000


But one should also consider that datestr() and datenum() should not give
contradictory results.  

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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