[Remind-Fans] 5 weekly cycle on Sundays?
Paul Pelzl
pelzlpj at eecs.umich.edu
Sat Jul 8 04:15:51 EDT 2006
On Sat, Jul 08, 2006 at 12:43:04PM +1000, Richard Sandilands wrote:
> Hi there
>
> There are a series of local markets in my region that I want to enter
> into Remind.
>
> On the first Sunday, there is Town A; second Sunday, Town B etc
>
> However, *if* there is a fifth Sunday in the month, then that market
> is held in Town E. So of course not all months have five Sundays. I'm
> stuck on implementing this in Remind.
>
> Any clues would be appreciated.
I think this works:
REM Sun 1 MSG Town A
REM Sun 8 MSG Town B
REM Sun 15 MSG Town C
REM Sun 22 MSG Town D
# this test ensures that the "Town E" reminder doesn't wander
# off into the first Sunday of next month
REM Sun 29 SATISFY 1
IF day(trigdate()) >= 29
REM [trigger(trigdate())] MSG Town E
ENDIF
Paul
More information about the Remind-fans
mailing list