src/LocalDateTime.php
public function minusYears(int $years) : LocalDateTime
    {
        if ($years === 0) {
            return $this;
        }

        return new LocalDateTime($this->date->minusYears($years), $this->time);
    }
public function minusYears(int $years) : LocalDateTime
    {
        if ($years === 0) {
            return $this;
        }

        return new LocalDateTime($this->date->minusYears($years), $this->time);
    }
public function minusYears ( int $ years ) : LocalDateTime { if ( $ years === 0 ) { return $ this ; } return new LocalDateTime ( $ this -> date -> minusYears ( $ years ) , $ this -> time ) ; }
Returns a copy of this LocalDateTime with the specified period in years subtracted.

@param int $years

@return LocalDateTime
Returns a copy of this LocalDateTime with the specified period in years subtracted .