Thus, 0:00 when it is formatted. This change corrects that to 0:59. 59.4 has always displayed correctly as 0:59 because the round function results in 59 % 60 = 59.
The seconds should really still be 59 because the time hasn't turned over to 1 minute yet. I can't really think of a case where it should round up.
Right now, a time like 59.8 will result in:
hours = floor(59.8 / 3600) = 0
minutes = floor((59.8 % 3600) / 60) = 0
seconds = round(59.8) % 60 = 0
Thus,
0:00
when it is formatted. This change corrects that to0:59
.59.4
has always displayed correctly as0:59
because the round function results in59 % 60 = 59
.The seconds should really still be 59 because the time hasn't turned over to 1 minute yet. I can't really think of a case where it should round up.