[Remind-Fans] Looking for a way to specify a certain number of reminders
Ian! D. Allen
idallen at idallen.ca
Mon Mar 23 10:37:09 EDT 2009
On Sun, Mar 22, 2009 at 09:02:48PM -0400, David F. Skoll wrote:
> > Any idea why "UNTIL [trigdate() + 21]" doesn't work?
> 1) trigdate() doesn't necessarily return March 22. It returns the
> actual calculated trigger date, so trigdate() + 21 will always be three
> weeks in the future.
Explain? I can't tell the difference between these:
REM Mar 23 2009 *7 UNTIL [trigger('2009-03-23' + 21)] MSG DEBUG 1 trigger
REM Mar 23 2009 *7 UNTIL [trigger(trigdate() + 21)] MSG DEBUG 2 trigdate
They both give me the same results, as far as I can tell, with the
latter to be preferred since it doesn't require me to repeat the date.
We could define a function to simplify the syntax a little:
FSET _repeat(date,period,count) "*"+period+" "+date+" UNTIL "+trigger(trigdate()+((count-1)*period))
REM [_repeat("Mar 23 2009",7,4)] MSG DEBUG 3 use a function
--
| Ian! D. Allen - idallen at idallen.ca - Ottawa, Ontario, Canada
| Home Page: http://idallen.com/ Contact Improv: http://contactimprov.ca/
| College professor (Open Source / Linux) via: http://teaching.idallen.com/
| Defend digital freedom: http://eff.org/ and have fun: http://fools.ca/
More information about the Remind-fans
mailing list