I’m rounding time to one minute using:
$mytime = mdate("H:i:s", $time_in_seconds);
$rounded_time = date('H:i:s', round(strtotime($mytime)/60)*60);
The output is for example: 01:09:00 from not rounded 01:08:34.
How can use the code but keep the seconds format rather than change to date?
what about using
?