public function getYears(bool $raw = false)
	{
		if ($raw)
		{
			return $this->difference / YEAR;
		}

		$time = clone($this->currentTime);
		return $time->fieldDifference($this->testTime, IntlCalendar::FIELD_YEAR);
	}
public function getYears(bool $raw = false)
	{
		if ($raw)
		{
			return $this->difference / YEAR;
		}

		$time = clone($this->currentTime);
		return $time->fieldDifference($this->testTime, IntlCalendar::FIELD_YEAR);
	}
public function getYears ( bool $ raw = false ) { if ( $ raw ) { return $ this -> difference / YEAR ; } $ time = clone ( $ this -> currentTime ) ; return $ time -> fieldDifference ( $ this -> testTime , IntlCalendar :: FIELD_YEAR ) ; }
Returns the number of years of difference between the two.

@param boolean $raw

@return float|integer
Returns the number of years of difference between the two .