src/RpkUtils/Converter/Time.php
public static function sec2time($seconds) 
    {
        $sec = intval($seconds);
        $dtF = new \DateTime("@0");
        $dtT = new \DateTime("@$sec");
        return $dtF->diff($dtT)->format('%a days, %h hours, %i minutes and %s seconds');
    }
public static function sec2time($seconds) 
    {
        $sec = intval($seconds);
        $dtF = new \DateTime("@0");
        $dtT = new \DateTime("@$sec");
        return $dtF->diff($dtT)->format('%a days, %h hours, %i minutes and %s seconds');
    }
public static function sec2time ( $ seconds ) { $ sec = intval ( $ seconds ) ; $ dtF = new \ DateTime ( "@0" ) ; $ dtT = new \ DateTime ( "@$sec" ) ; return $ dtF -> diff ( $ dtT ) -> format ( '%a days, %h hours, %i minutes and %s seconds' ) ; }
Convert seconds into human readeble time
@param int $seconds
@return string
Convert seconds into human readeble time