Lines 576-582
Link Here
|
576 |
/* Every dayofweek of the year */ |
576 |
/* Every dayofweek of the year */ |
577 |
if (lflags == (F_DAYOFWEEK | F_VARIABLE)) { |
577 |
if (lflags == (F_DAYOFWEEK | F_VARIABLE)) { |
578 |
dow = first_dayofweek_of_year(year); |
578 |
dow = first_dayofweek_of_year(year); |
579 |
d = (idayofweek - dow + 8) % 7; |
579 |
if (dow < 0) |
|
|
580 |
continue; |
581 |
d = (idayofweek - dow + 7) % 7 + 1; |
580 |
while (d <= 366) { |
582 |
while (d <= 366) { |
581 |
if (remember_yd(year, d, &rm, &rd)) |
583 |
if (remember_yd(year, d, &rm, &rd)) |
582 |
remember(&remindex, |
584 |
remember(&remindex, |
Lines 614-620
Link Here
|
614 |
(F_MONTH | F_DAYOFWEEK | F_MODIFIERINDEX | F_VARIABLE)) { |
616 |
(F_MONTH | F_DAYOFWEEK | F_MODIFIERINDEX | F_VARIABLE)) { |
615 |
offset = indextooffset(modifierindex); |
617 |
offset = indextooffset(modifierindex); |
616 |
dow = first_dayofweek_of_month(year, imonth); |
618 |
dow = first_dayofweek_of_month(year, imonth); |
617 |
d = (idayofweek - dow + 8) % 7; |
619 |
if (dow < 0) |
|
|
620 |
continue; |
621 |
d = (idayofweek - dow + 7) % 7 + 1; |
618 |
|
622 |
|
619 |
if (offset > 0) { |
623 |
if (offset > 0) { |
620 |
while (d <= yearinfo->monthdays[imonth]) { |
624 |
while (d <= yearinfo->monthdays[imonth]) { |
Lines 648-654
Link Here
|
648 |
/* Every dayofweek of the month */ |
652 |
/* Every dayofweek of the month */ |
649 |
if (lflags == (F_DAYOFWEEK | F_MONTH | F_VARIABLE)) { |
653 |
if (lflags == (F_DAYOFWEEK | F_MONTH | F_VARIABLE)) { |
650 |
dow = first_dayofweek_of_month(year, imonth); |
654 |
dow = first_dayofweek_of_month(year, imonth); |
651 |
d = (idayofweek - dow + 8) % 7; |
655 |
if (dow < 0) |
|
|
656 |
continue; |
657 |
d = (idayofweek - dow + 7) % 7 + 1; |
652 |
while (d <= yearinfo->monthdays[imonth]) { |
658 |
while (d <= yearinfo->monthdays[imonth]) { |
653 |
if (remember_ymd(year, imonth, d)) |
659 |
if (remember_ymd(year, imonth, d)) |
654 |
remember(&remindex, |
660 |
remember(&remindex, |