[Remind-Fans] reminding of late events

Daniel Graham daniel.graham at duke.edu
Fri Mar 24 11:40:52 EST 2006


I just ran across Mike Soulier's post in the remind-friends archive and
thought my solution might be useful.

First define:

    FSET float(y,m,d) trigger(MAX(realtoday(), date(y,m,d)))
    FSET due(y,m,d) "(" + (date(y,m,d)-trigdate()) + ")"


    REM [float(2006,4,1)] MSG File tax return [due(2006,4,15)]%

On or before April 1, the calendar for April 1 (only) will then display 

    File tax return (14)

and on or after April 2, the calendar for the current date (only) will display

    File tax return (d)

where d is the number of days remaining before April 15, e.g.

on April 13: File tax return (2)

on April 18: File tax return (-3)

Note that the reminder never appears on more than one date so it
won't clutter up your calendar.

-Dan
-- 
Daniel A Graham
Professor of Economics
Duke University
Durham, NC 27708-0097
919 660-1802




More information about the Remind-fans mailing list