Lines Matching defs:date
24 public function isSatisfiedBy(DateTime $date, $value)
33 $currentYear = $date->format('Y');
34 $currentMonth = $date->format('m');
35 $lastDayOfMonth = $date->format('t');
40 $tdate = clone $date;
49 return $date->format('j') == $lastDayOfMonth;
56 // 0 and 7 are both Sunday, however 7 matches date('N') format ISO-8601
69 if ($date->format('N') != $weekday) {
73 $tdate = clone $date;
86 return $date->format('j') == $currentDay;
102 $fieldValue = $date->format($format);
107 public function increment(DateTime $date, $invert = false)
110 $date->modify('-1 day');
111 $date->setTime(23, 59, 0);
113 $date->modify('+1 day');
114 $date->setTime(0, 0, 0);