Lines Matching refs:weekday
37 // Find out if this is the last specific weekday of the month
39 $weekday = str_replace('7', '0', substr($value, 0, strpos($value, 'L')));
42 while ($tdate->format('w') != $weekday) {
54 list($weekday, $nth) = explode('#', $value);
57 if ($weekday === '0') {
58 $weekday = 7;
62 if ($weekday < 0 || $weekday > 7) {
63 throw new InvalidArgumentException("Weekday must be a value between 0 and 7. {$weekday} given");
66 throw new InvalidArgumentException('There are never more than 5 of a given weekday in a month');
68 // The current weekday must match the targeted weekday to proceed
69 if ($date->format('N') != $weekday) {
78 if ($tdate->format('N') == $weekday) {