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