コード例 #1
0
ファイル: LocalDateTime.php プロジェクト: brick/date-time
 /**
  * Returns a copy of this LocalDateTime with the day-of-month altered.
  *
  * If the resulting date is invalid, an exception is thrown.
  *
  * @param integer $day
  *
  * @return LocalDateTime
  *
  * @throws DateTimeException If the day is invalid for the current year and month.
  */
 public function withDay($day)
 {
     return $this->with($this->date->withDay($day), $this->time);
 }