Esempio n. 1
0
 /**
  * Returns a copy of this LocalDateTime with the hour-of-day altered.
  *
  * @param integer $hour
  *
  * @return LocalDateTime
  *
  * @throws DateTimeException If the hour is invalid.
  */
 public function withHour($hour)
 {
     return $this->with($this->date, $this->time->withHour($hour));
 }