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

@param int $day

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