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

@param int $month

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