[Remind-Fans] trigger date defined as: date+x days

Paul Pelzl pelzlpj at eecs.umich.edu
Thu Jan 4 19:27:39 EST 2007


On Fri, Jan 05, 2007 at 12:05:59AM +0000, T E Schmitz wrote:
> I am sorry if this is a daft question but I can't get my head around this:
> 
> My event is, say, 180 days after a certain date. So, I want date+180 as 
> my trigger date. How do I express this?

If you know the value of "date" ahead of time, then you can enter it as
a date constant which can be used in arithmetic expressions:

   REM [trigger('2007-01-04' + 180)] MSG 180 days after Jan 4

If you need to do more complicated scripting, then you might want to
work some magic with trigdate():

   REM Jan 4 2007 SATISFY 1        # (or maybe something more complex)
   REM [trigger(trigdate() + 180)] MSG 180 days after previous trigger

Paul





More information about the Remind-fans mailing list