protected function getMonths()
    {
        $intSecondsPerMonth = ($this->isPositive()) ? DateTimeSpan::SECONDS_PER_MONTH : ((-1) * DateTimeSpan::SECONDS_PER_MONTH);
        $intMonths = floor($this->intSeconds / $intSecondsPerMonth);
        if ($this->isNegative()) {
            $intMonths = (-1) * $intMonths;
        }
        return $intMonths;
    }
protected function getMonths()
    {
        $intSecondsPerMonth = ($this->isPositive()) ? DateTimeSpan::SECONDS_PER_MONTH : ((-1) * DateTimeSpan::SECONDS_PER_MONTH);
        $intMonths = floor($this->intSeconds / $intSecondsPerMonth);
        if ($this->isNegative()) {
            $intMonths = (-1) * $intMonths;
        }
        return $intMonths;
    }
protected function getMonths ( ) { $ intSecondsPerMonth = ( $ this -> isPositive ( ) ) ? DateTimeSpan :: SECONDS_PER_MONTH : ( ( - 1 ) * DateTimeSpan :: SECONDS_PER_MONTH ) ; $ intMonths = floor ( $ this -> intSeconds / $ intSecondsPerMonth ) ; if ( $ this -> isNegative ( ) ) { $ intMonths = ( - 1 ) * $ intMonths ; } return $ intMonths ; }
Calculates the total whole months in the current DateTimeSpan

@return int
Calculates the total whole months in the current DateTimeSpan