Mage/Command/BuiltIn/DeployCommand.php
/**
     * Humanize Transcurred time
     *
     * @param integer $time
     * @return string
     */
Humanize Transcurred time
@param integer $time
@return string
Humanize Transcurred time @param integer $time @return string
protected function transcurredTime($time)
    {
        $hours = floor($time / 3600);
        $minutes = floor(($time - ($hours * 3600)) / 60);
        $seconds = $time - ($minutes * 60) - ($hours * 3600);
        $timeText = array();
        if ($hours > 0) {
            $timeText[] = $hours . ' hours';
        }
        if ($minutes > 0) {
            $timeText[] = $minutes . ' minutes';
        }
        if ($seconds >= 0) {
            $timeText[] = $seconds . ' seconds';
        }
        return implode(' ', $timeText);
    }
protected function transcurredTime ( $ time ) { $ hours = floor ( $ time / 3600 ) ; $ minutes = floor ( ( $ time - ( $ hours * 3600 ) ) / 60 ) ; $ seconds = $ time - ( $ minutes * 60 ) - ( $ hours * 3600 ) ; $ timeText = array ( ) ; if ( $ hours > 0 ) { $ timeText [ ] = $ hours . ' hours' ; } if ( $ minutes > 0 ) { $ timeText [ ] = $ minutes . ' minutes' ; } if ( $ seconds >= 0 ) { $ timeText [ ] = $ seconds . ' seconds' ; } return implode ( ' ' , $ timeText ) ; }
Humanize Transcurred time
 @param integer $time
 @return string
Humanize Transcurred time @param integer $time @return string