better definition of prev_monday

This commit is contained in:
David F. Skoll
2007-08-21 22:03:31 -04:00
parent f229e64744
commit 51cdea4b17

View File

@@ -2265,7 +2265,7 @@ day is Thursday, but if any of Monday through Thursday of a week is a holiday,
the collection day moves to Friday. Here's one way to solve it:
.PP
.nf
FSET prev_monday(x) x - wkdaynum(x-1) % 7
FSET prev_monday(x) x - wkdaynum(x-1)
REM Thu Fri SATISFY [wkdaynum(trigdate()) == 4 && \\
nonomitted(prev_monday(today()), today()+1) == 4 || \\