php seconds to hours minutes seconds code example
Example 1: seconds to minutes php
echo gmdate("H:i:s", 685);
Example 2: php convert minutes to hours and minutes
$hours = floor($final_time_saving / 60);
$minutes = $final_time_saving % 60;
echo gmdate("H:i:s", 685);
$hours = floor($final_time_saving / 60);
$minutes = $final_time_saving % 60;