public static function convertSecondsToElapsedTime($seconds) {

        // Hours component
        $hours = floor($seconds / 3600);

        // Minutes component
        $remainder = $seconds - ($hours * 3600);
        $minutes = floor($remainder / 60);

        // Seconds component
        $seconds = round($remainder - ($minutes * 60));


        return sprintf("%02d", $hours) . ":" . sprintf("%02d", $minutes) . ":" . sprintf("%02d", $seconds);

    }
public static function convertSecondsToElapsedTime($seconds) {

        // Hours component
        $hours = floor($seconds / 3600);

        // Minutes component
        $remainder = $seconds - ($hours * 3600);
        $minutes = floor($remainder / 60);

        // Seconds component
        $seconds = round($remainder - ($minutes * 60));


        return sprintf("%02d", $hours) . ":" . sprintf("%02d", $minutes) . ":" . sprintf("%02d", $seconds);

    }
public static function convertSecondsToElapsedTime ( $ seconds ) { // Hours component $ hours = floor ( $ seconds / 3600 ) ; // Minutes component $ remainder = $ seconds - ( $ hours * 3600 ) ; $ minutes = floor ( $ remainder / 60 ) ; // Seconds component $ seconds = round ( $ remainder - ( $ minutes * 60 ) ) ; return sprintf ( "%02d" , $ hours ) . ":" . sprintf ( "%02d" , $ minutes ) . ":" . sprintf ( "%02d" , $ seconds ) ; }
Convert seconds to an elapsed time value

@param $seconds
Convert seconds to an elapsed time value