Answers for "hours to days in php"

PHP
2

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
0

php date + 30 days

echo date('d/m/Y',strtotime('+30 days',strtotime(str_replace('/', '-', '05/06/2016')))) . PHP_EOL;
Posted by: Guest on July-30-2020

Code answers related to "hours to days in php"

Browse Popular Code Answers by Language