protected function convertFromMinutes($minutes)
    {
        $seconds = $minutes * 60;

        $secondsInAMinute = 60;
        $secondsInAnHour  = 60 * $secondsInAMinute;
        $secondsInADay    = 24 * $secondsInAnHour;

        // extract days
        $days = floor($seconds / $secondsInADay);

        // extract hours
        $hourSeconds = $seconds % $secondsInADay;
        $hours       = floor($hourSeconds / $secondsInAnHour);

        // extract minutes
        $minuteSeconds = $hourSeconds % $secondsInAnHour;
        $minutes       = floor($minuteSeconds / $secondsInAMinute);

        // return the final string
        $output = '';

        if ($days > 0) {
            $output .= $days . ' ' . $this->pluralize('day', $days);
        }

        if ($hours > 0) {
            $output .= $hours . ' ' . $this->pluralize('hour', $hours);
        }

        $output .= $minutes . ' ' . $this->pluralize('minute', $minutes);

        return $output;
    }
protected function convertFromMinutes($minutes)
    {
        $seconds = $minutes * 60;

        $secondsInAMinute = 60;
        $secondsInAnHour  = 60 * $secondsInAMinute;
        $secondsInADay    = 24 * $secondsInAnHour;

        // extract days
        $days = floor($seconds / $secondsInADay);

        // extract hours
        $hourSeconds = $seconds % $secondsInADay;
        $hours       = floor($hourSeconds / $secondsInAnHour);

        // extract minutes
        $minuteSeconds = $hourSeconds % $secondsInAnHour;
        $minutes       = floor($minuteSeconds / $secondsInAMinute);

        // return the final string
        $output = '';

        if ($days > 0) {
            $output .= $days . ' ' . $this->pluralize('day', $days);
        }

        if ($hours > 0) {
            $output .= $hours . ' ' . $this->pluralize('hour', $hours);
        }

        $output .= $minutes . ' ' . $this->pluralize('minute', $minutes);

        return $output;
    }
protected function convertFromMinutes ( $ minutes ) { $ seconds = $ minutes * 60 ; $ secondsInAMinute = 60 ; $ secondsInAnHour = 60 * $ secondsInAMinute ; $ secondsInADay = 24 * $ secondsInAnHour ; // extract days $ days = floor ( $ seconds / $ secondsInADay ) ; // extract hours $ hourSeconds = $ seconds % $ secondsInADay ; $ hours = floor ( $ hourSeconds / $ secondsInAnHour ) ; // extract minutes $ minuteSeconds = $ hourSeconds % $ secondsInAnHour ; $ minutes = floor ( $ minuteSeconds / $ secondsInAMinute ) ; // return the final string $ output = '' ; if ( $ days > 0 ) { $ output .= $ days . ' ' . $ this -> pluralize ( 'day' , $ days ) ; } if ( $ hours > 0 ) { $ output .= $ hours . ' ' . $ this -> pluralize ( 'hour' , $ hours ) ; } $ output .= $ minutes . ' ' . $ this -> pluralize ( 'minute' , $ minutes ) ; return $ output ; }
Convert a value from pure minutes into something easily digestible.

@param $minutes

@return string
Convert a value from pure minutes into something easily digestible .