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