Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
82
rated 0 times [  89] [ 7]  / answers: 1 / hits: 15974  / 13 Years ago, thu, april 7, 2011, 12:00:00

How to parse a given amount of milliseconds (e.g. 125230.41294642858) into a time format like: minutes:seconds?


More From » parsing

 Answers
85
var ms = 125230.41294642858,
min = 0|(ms/1000/60),
sec = 0|(ms/1000) % 60;

alert(min + ':' + sec);

[#92856] Wednesday, April 6, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
maurodannyr

Total Points: 126
Total Questions: 103
Total Answers: 105

Location: Maldives
Member since Sun, Feb 27, 2022
2 Years ago
;