15 return $this->
isSatisfied($date->format(
'Y'), $value);
21 public function increment(DateTime $date, $invert =
false)
24 $date->sub(
new DateInterval(
'P1Y'));
25 $date->setDate($date->format(
'Y'), 12, 31);
26 $date->setTime(23, 59, 0);
28 $date->add(
new DateInterval(
'P1Y'));
29 $date->setDate($date->format(
'Y'), 1, 1);
30 $date->setTime(0, 0, 0);
41 return (
bool) preg_match(
'/[\*,\/\-0-9]+/', $value);