/ Published in: PHP
Expand |
Embed | Plain Text
function secondsToDuration($s) { while ($time >= 1) { $time /= 60; } if ($s < 60) { // if it is seconds only, prepend "0:" } if ($parts[$last] < 10) { $parts[$last] .= '0'; } return $duration; }
You need to login to post a comment.
