src/ZonedDateTime.php
public function withYear(int $year) : ZonedDateTime
    {
        return ZonedDateTime::of($this->localDateTime->withYear($year), $this->timeZone);
    }
public function withYear(int $year) : ZonedDateTime
    {
        return ZonedDateTime::of($this->localDateTime->withYear($year), $this->timeZone);
    }
public function withYear ( int $ year ) : ZonedDateTime { return ZonedDateTime :: of ( $ this -> localDateTime -> withYear ( $ year ) , $ this -> timeZone ) ; }
Returns a copy of this ZonedDateTime with the year altered.

@param int $year

@return ZonedDateTime
Returns a copy of this ZonedDateTime with the year altered .