Lines Matching refs:date
13 public function isSatisfiedBy(DateTime $date, $value)
15 return $this->isSatisfied($date->format('Y'), $value);
18 public function increment(DateTime $date, $invert = false)
21 $date->modify('-1 year');
22 $date->setDate($date->format('Y'), 12, 31);
23 $date->setTime(23, 59, 0);
25 $date->modify('+1 year');
26 $date->setDate($date->format('Y'), 1, 1);
27 $date->setTime(0, 0, 0);