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

@param int $hour

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