This is not a duplicate question, but involves a little understanding about time.
I need a solution to the following problem I have a number of specifically produced tim
$seconds = ($hr * 60 + $mn) * 60 + $sc; // convert to seconds $rounded = round($seconds/15)*15; // round $sc = $rounded % 60; // get seconds $mn = ($rounded - $sc) / 60 % 60; // get minutes $hr = ($rounded - $sc - $mn * 60) / 60; // get hours