[Remind-Fans] OMITFUNC vs SATISFY to skip some occurrences
Dianne Skoll
dianne at skoll.ca
Fri Sep 6 08:14:05 EDT 2019
Hi,
> I have a timed, recurring, event with defined start and stop dates and
> two specific days where there will be no occurrence.
>
> Using OMITFUNC:
>
> FSET _test(d) (iif(today() == '2019/09/30', 1, \
> today() == '2019/10/28', 1, 0))
> REM Mon +3 OMITFUNC _test SKIP FROM 02 Sep 2019 \
> UNTIL 02 Dec 2019 AT 12:00 DURATION 1:30 \
> MSG test %b %3
>
> Using SATISFY:
>
> REM Mon +3 FROM 02 Sep 2019 UNTIL 02 Dec 2019 AT 12:00 \
> DURATION 1:30 SATISFY [trigdate() != '2019/09/30' \
> && trigdate() != '2019/10/28'] \
> MSG test %b %3
Either will work. However, the idiomatic and fastest way to do it is:
PUSH-OMIT-CONTEXT
OMIT 30 Sep 2019
OMIT 28 Oct 2019
REM Mon +3 FROM 2 Sep 2019 UNTIL 2 Dec 2019 SKIP AT 12:00 DURATION 1:30 MSG test
%b %3
POP-OMIT-CONTEXT
The "SKIP" keyword tells Remind to skip a reminder if it falls on an
OMITted date.
Regards,
Dianne.
More information about the Remind-fans
mailing list