Example #1
0
 /**
  * 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));
 }