[Remind-Fans] Computing a priority

David F. Skoll dfs at roaringpenguin.com
Mon Jan 31 13:22:25 EST 2011


On Mon, 31 Jan 2011 18:59:10 +0100
Jens Mueller <jens.k.mueller at gmx.de> wrote:

> Suppose I have
> rem 10 jan 2011 *1 +14 msg [magic_function()] Do this %a
> rem 2 feb 2011 *1 +14 msg [magic_function()] Do that %a

> magic_function should compute the difference between the date given in
> the rem command and now in days.

There's no way to get at the "10 jan 2011" part of the REM command
because the *1 ensures that trigdate() will always be today (or in the
future.)

You'll need something like this:

REM 10 Jan 2011 *1 +14 MSG ['2011-01-10' -today()] Do this %a
REM  2 Feb 2011 *1 +14 MSG ['2011-02-02' -today()] Do that %a

Ugly... but it works.

Regards,

David.


More information about the Remind-fans mailing list