Dianne Skoll <[email protected]> wrote:
> 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.

Aha! Thanks for that. :)

_______________________________________________
Remind-fans mailing list
[email protected]
https://dianne.skoll.ca/mailman/listinfo/remind-fans
Remind is at https://dianne.skoll.ca/projects/remind/

Reply via email to