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