22 } elseif ($this->
isRange($value)) {
23 return $this->
isInRange($dateValue, $value);
26 return $value ==
'*' || $dateValue == $value;
38 return strpos($value,
'-') !==
false;
50 return strpos($value,
'/') !==
false;
63 $parts = array_map(
'trim', explode(
'-', $value, 2));
65 return $dateValue >= $parts[0] && $dateValue <= $parts[1];
78 $parts = array_map(
'trim', explode(
'/', $value, 2));
79 $stepSize = isset($parts[1]) ? $parts[1] : 0;
80 if ($parts[0] ==
'*' || $parts[0] == 0) {
81 return (
int) $dateValue % $stepSize == 0;
84 $range = explode(
'-', $parts[0], 2);
86 $to = isset($range[1]) ? $range[1] : $dateValue;
88 if ($dateValue < $offset || $dateValue > $to) {
92 for (
$i = $offset;
$i <= $to;
$i += $stepSize) {
93 if (
$i == $dateValue) {