src/ZonedDateTime.php
public function withTime(LocalTime $time) : ZonedDateTime
    {
        return ZonedDateTime::of($this->localDateTime->withTime($time), $this->timeZone);
    }
public function withTime(LocalTime $time) : ZonedDateTime
    {
        return ZonedDateTime::of($this->localDateTime->withTime($time), $this->timeZone);
    }
public function withTime ( LocalTime $ time ) : ZonedDateTime { return ZonedDateTime :: of ( $ this -> localDateTime -> withTime ( $ time ) , $ this -> timeZone ) ; }
Returns a copy of this ZonedDateTime with a different time.

@param LocalTime $time

@return ZonedDateTime
Returns a copy of this ZonedDateTime with a different time .