Lines 617-622
parsedaymonth(char *date, int *yearp, int *monthp,
Link Here
|
617 |
offset = indextooffset(modifierindex); |
617 |
offset = indextooffset(modifierindex); |
618 |
dow = first_dayofweek_of_month(year, imonth); |
618 |
dow = first_dayofweek_of_month(year, imonth); |
619 |
d = (idayofweek - dow + 8) % 7; |
619 |
d = (idayofweek - dow + 8) % 7; |
|
|
620 |
if (d == 0) { |
621 |
/* This day of the first week is 7th */ |
622 |
d = 7; |
623 |
} |
620 |
|
624 |
|
621 |
if (offset > 0) { |
625 |
if (offset > 0) { |
622 |
while (d <= yearinfo->monthdays[imonth]) { |
626 |
while (d <= yearinfo->monthdays[imonth]) { |