php microtime to seconds

Solutions on MaxInterview for php microtime to seconds by the best coders in the world

showing results for - "php microtime to seconds"
Silvia
30 Sep 2018
1echo date("H:i:s",$endtime-$starttime);
2
3$duration = $endtime-$starttime;
4$hours = (int)($duration/60/60);
5$minutes = (int)($duration/60)-$hours*60;
6$seconds = (int)$duration-$hours*60*60-$minutes*60;