[Remind-Fans] Even numbered months 4th Wed mtg., except Dec., then Jan.

David F. Skoll dfs at roaringpenguin.com
Sat Feb 11 22:08:59 EST 2012


On Sat, 11 Feb 2012 14:07:56 -0800
Brian Flaherty <bxf4 at u.washington.edu> wrote:

> I have meeting the 4th Wed. of even numbered months, except the
> Dec. mtg. is moved to Jan. I did it this way:

> REM SATISFY (monnum(trigdate())==1 || (monnum(trigdate())%2==0 &&
> monnum(trigdate())!=12)) && day(trigdate())>21 && day(trigdate())<28
[...]

That works.  I would have written:

REM Wed 21 +2 AT 18:30 DURATION 2:30 SATISFY [$Tm == 1 || ($Tm != 12 && !($Tm %2))] MSG Special meeting %b %3

because it's more efficient.  (Try both with the -dx flag to see
how often Remind evaluates the SATISFY expression.)

Note that you need a recent version of Remind for $Tm, which is equivalent
to monnum(trigdate())

Regards,

David.


More information about the Remind-fans mailing list