コード例 #1
0
ファイル: LocalDateRange.php プロジェクト: brick/date-time
 /**
  * Returns whether this LocalDateRange contains the given date.
  *
  * @param LocalDate $date The date to check.
  *
  * @return boolean True if this range contains the given date, false otherwise.
  */
 public function contains(LocalDate $date)
 {
     return !($date->isBefore($this->startDate) || $date->isAfter($this->endDate));
 }