* "David F. Skoll" <[EMAIL PROTECTED]> [20081107 15:25 -0500]:
> This code appears to work correctly in all cases.
>
> FSET prev_monday(x) x - wkdaynum(x-1)
>
> # It is garbage day IFF:
> # 1) It's Tuesday, and neither Monday nor Tuesday is a holiday, OR
> # 2) It's Wednesday, and at least one of Monday or Tuesday was a holiday
> FSET garbage_day(x) \
> wkdaynum(x) == 2 && nonomitted(prev_monday(x), x+1) == 2 || \
> wkdaynum(x) == 3 && nonomitted(prev_monday(x), x) < 2
>
> REM Tue Wed SATISFY [garbage_day(trigdate())] MSG Garbage Day
Brilliant! Thank you.
JL
--
JL <[EMAIL PROTECTED]>
This message optimized for teletypes.
_______________________________________________
Remind-fans mailing list
[email protected]
http://lists.whatexit.org/mailman/listinfo/remind-fans