src/Time/TimeConversion.php
function convertToHours()
    {
        $totalMinutes = $this->minutes;
        $Mins = ($totalMinutes % 60);
        $Hours = floor(abs($totalMinutes) / 60);
        if ($totalMinutes < 0) {
            $Hours = '-' . $Hours;
            $Mins = substr($Mins, 1);
        } else {
            $Hours = floor($totalMinutes / 60);
        }
        $Mins = str_pad($Mins, 2, '0', STR_PAD_LEFT);
        $this->HM = new HM($Hours, $Mins);

        return $this;
    }
function convertToHours()
    {
        $totalMinutes = $this->minutes;
        $Mins = ($totalMinutes % 60);
        $Hours = floor(abs($totalMinutes) / 60);
        if ($totalMinutes < 0) {
            $Hours = '-' . $Hours;
            $Mins = substr($Mins, 1);
        } else {
            $Hours = floor($totalMinutes / 60);
        }
        $Mins = str_pad($Mins, 2, '0', STR_PAD_LEFT);
        $this->HM = new HM($Hours, $Mins);

        return $this;
    }
function convertToHours ( ) { $ totalMinutes = $ this -> minutes ; $ Mins = ( $ totalMinutes % 60 ) ; $ Hours = floor ( abs ( $ totalMinutes ) / 60 ) ; if ( $ totalMinutes < 0 ) { $ Hours = '-' . $ Hours ; $ Mins = substr ( $ Mins , 1 ) ; } else { $ Hours = floor ( $ totalMinutes / 60 ) ; } $ Mins = str_pad ( $ Mins , 2 , '0' , STR_PAD_LEFT ) ; $ this -> HM = new HM ( $ Hours , $ Mins ) ; return $ this ; }
Umwandlung der Minuten in Stunden und Minuten. Z.B. 3170 Min. = 52 Std. und 50 Min.

@return $this
Umwandlung der Minuten in Stunden und Minuten . Z . B . 3170 Min . = 52 Std . und 50 Min .