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: Luis Mendo
Subject: [Octave-bug-tracker] [bug #50673] datestr truncates fractional minutes rather than rounding
Date: Sun, 2 Apr 2017 18:34:06 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

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

Thank you both!

I've noticed that with the patched file

http://hg.savannah.gnu.org/hgweb/octave/file/68dbde0e670a/scripts/time/datestr.m

the result of 'datestr(datenum('1:00')-datenum('0:55'))' is now '12:05 AM'. I
expected it would be '0:05 AM' (before the patch it was '0:04 AM', and Matlab
gives '0:05 AM').


    _______________________________________________________

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]