protected function getTimearray()
    {
        $intSeconds = abs($this->intSeconds);

        $intYears = floor($intSeconds / DateTimeSpan::SECONDS_PER_YEAR);
        $intSeconds = $intSeconds - ($intYears * DateTimeSpan::SECONDS_PER_YEAR);

        $intMonths = floor($intSeconds / DateTimeSpan::SECONDS_PER_MONTH);
        $intSeconds = $intSeconds - ($intMonths * DateTimeSpan::SECONDS_PER_MONTH);

        $intDays = floor($intSeconds / DateTimeSpan::SECONDS_PER_DAY);
        $intSeconds = $intSeconds - ($intDays * DateTimeSpan::SECONDS_PER_DAY);

        $intHours = floor($intSeconds / DateTimeSpan::SECONDS_PER_HOUR);
        $intSeconds = $intSeconds - ($intHours * DateTimeSpan::SECONDS_PER_HOUR);

        $intMinutes = floor($intSeconds / DateTimeSpan::SECONDS_PER_MINUTE);
        $intSeconds = $intSeconds - ($intMinutes * DateTimeSpan::SECONDS_PER_MINUTE);

        if ($this->isNegative()) {
            // Turn values to negative
            $intYears = ((-1) * $intYears);
            $intMonths = ((-1) * $intMonths);
            $intDays = ((-1) * $intDays);
            $intHours = ((-1) * $intHours);
            $intMinutes = ((-1) * $intMinutes);
            $intSeconds = ((-1) * $intSeconds);
        }

        return array(
            'Years' => $intYears,
            'Months' => $intMonths,
            'Days' => $intDays,
            'Hours' => $intHours,
            'Minutes' => $intMinutes,
            'Seconds' => $intSeconds
        );
    }
protected function getTimearray()
    {
        $intSeconds = abs($this->intSeconds);

        $intYears = floor($intSeconds / DateTimeSpan::SECONDS_PER_YEAR);
        $intSeconds = $intSeconds - ($intYears * DateTimeSpan::SECONDS_PER_YEAR);

        $intMonths = floor($intSeconds / DateTimeSpan::SECONDS_PER_MONTH);
        $intSeconds = $intSeconds - ($intMonths * DateTimeSpan::SECONDS_PER_MONTH);

        $intDays = floor($intSeconds / DateTimeSpan::SECONDS_PER_DAY);
        $intSeconds = $intSeconds - ($intDays * DateTimeSpan::SECONDS_PER_DAY);

        $intHours = floor($intSeconds / DateTimeSpan::SECONDS_PER_HOUR);
        $intSeconds = $intSeconds - ($intHours * DateTimeSpan::SECONDS_PER_HOUR);

        $intMinutes = floor($intSeconds / DateTimeSpan::SECONDS_PER_MINUTE);
        $intSeconds = $intSeconds - ($intMinutes * DateTimeSpan::SECONDS_PER_MINUTE);

        if ($this->isNegative()) {
            // Turn values to negative
            $intYears = ((-1) * $intYears);
            $intMonths = ((-1) * $intMonths);
            $intDays = ((-1) * $intDays);
            $intHours = ((-1) * $intHours);
            $intMinutes = ((-1) * $intMinutes);
            $intSeconds = ((-1) * $intSeconds);
        }

        return array(
            'Years' => $intYears,
            'Months' => $intMonths,
            'Days' => $intDays,
            'Hours' => $intHours,
            'Minutes' => $intMinutes,
            'Seconds' => $intSeconds
        );
    }
protected function getTimearray ( ) { $ intSeconds = abs ( $ this -> intSeconds ) ; $ intYears = floor ( $ intSeconds / DateTimeSpan :: SECONDS_PER_YEAR ) ; $ intSeconds = $ intSeconds - ( $ intYears * DateTimeSpan :: SECONDS_PER_YEAR ) ; $ intMonths = floor ( $ intSeconds / DateTimeSpan :: SECONDS_PER_MONTH ) ; $ intSeconds = $ intSeconds - ( $ intMonths * DateTimeSpan :: SECONDS_PER_MONTH ) ; $ intDays = floor ( $ intSeconds / DateTimeSpan :: SECONDS_PER_DAY ) ; $ intSeconds = $ intSeconds - ( $ intDays * DateTimeSpan :: SECONDS_PER_DAY ) ; $ intHours = floor ( $ intSeconds / DateTimeSpan :: SECONDS_PER_HOUR ) ; $ intSeconds = $ intSeconds - ( $ intHours * DateTimeSpan :: SECONDS_PER_HOUR ) ; $ intMinutes = floor ( $ intSeconds / DateTimeSpan :: SECONDS_PER_MINUTE ) ; $ intSeconds = $ intSeconds - ( $ intMinutes * DateTimeSpan :: SECONDS_PER_MINUTE ) ; if ( $ this -> isNegative ( ) ) { // Turn values to negative $ intYears = ( ( - 1 ) * $ intYears ) ; $ intMonths = ( ( - 1 ) * $ intMonths ) ; $ intDays = ( ( - 1 ) * $ intDays ) ; $ intHours = ( ( - 1 ) * $ intHours ) ; $ intMinutes = ( ( - 1 ) * $ intMinutes ) ; $ intSeconds = ( ( - 1 ) * $ intSeconds ) ; } return array ( 'Years' => $ intYears , 'Months' => $ intMonths , 'Days' => $ intDays , 'Hours' => $ intHours , 'Minutes' => $ intMinutes , 'Seconds' => $ intSeconds ) ; }
Return an array of timeunints

@return array of timeunits
Return an array of timeunints