答案 0 :(得分:7)
是的,值是,以秒为单位,非常简单;
int minutes = val / 60;
int seconds = val % 60;
答案 1 :(得分:2)
$time = 292.96;
$minutes = floor( $time / 60);
$seconds = $time - ($minutes * 60); // Can add floor() or do mod (%) to round
echo $minutes . ' ' . $seconds; // 4 minutes 52.96 seconds