View Single Post
Old 25 June 2016, 15:31   #4
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,021
Quote:
Originally Posted by KONEY View Post
I just removed the addition of 500ms to the total because it made no sense to me.
It's rounding, same result as trunc(total_ms / 1000 + 0.5)

If the song is 29.9 seconds long (29900 ms), you might want to display 0:30 rather than 0:29.
thomas is offline  
 
Page generated in 0.04377 seconds with 10 queries