Lines Matching defs:date
34 * @return \DateTime Returns the nearest date
59 public function isSatisfiedBy(DateTime $date, $value)
66 $fieldValue = $date->format('d');
70 return $fieldValue == $date->format('t');
78 return $date->format('j') == self::getNearestWeekday(
79 $date->format('Y'),
80 $date->format('m'),
85 return $this->isSatisfied($date->format('d'), $value);
88 public function increment(DateTime $date, $invert = false)
91 $date->modify('previous day');
92 $date->setTime(23, 59);
94 $date->modify('next day');
95 $date->setTime(0, 0);