Answers for "php total seconds to minutes"

PHP
2

seconds to minutes php

echo gmdate("H:i:s", 685);
Posted by: Guest on August-04-2020
1

seconds to days hours minutes seconds php

function seconds2human($ss) {
$s = $ss%60;
$m = floor(($ss%3600)/60);
$h = floor(($ss%86400)/3600);
$d = floor(($ss%2592000)/86400);
$M = floor($ss/2592000);

return "$M months, $d days, $h hours, $m minutes, $s seconds";
}
Posted by: Guest on June-18-2020

Code answers related to "php total seconds to minutes"

Browse Popular Code Answers by Language