Answers for "php time to hours and minutes"

PHP
1

how to add hour minute seconds in php datetime

date('Y-m-d H:i',strtotime('+1 hour +20 minutes',strtotime($start)));
Posted by: Guest on August-13-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
1

php convert minutes to hours and minutes

$hours = floor($final_time_saving / 60);
$minutes = $final_time_saving % 60;
Posted by: Guest on March-04-2021

Code answers related to "php time to hours and minutes"

Browse Popular Code Answers by Language