Help with length on past broadcast

My usual time math (off the top of my head)

$hours = floor($length_in_seconds / 3600);
$left = $length_in_seconds - ($hours * 3600);
$mins = floor($left / 60);
$seconds = $left - ($mins * 60);

If that helps

1 Like