[Remind-Fans] OMITFUNC vs SATISFY to skip some occurrences

Larry Hynes larry at larryhynes.com
Fri Sep 6 06:35:53 EDT 2019


Hi

I'm idly curious as to whether one of these approaches is 'better' than
the other, e.g. more idiomatic or just plain faster; or is there an
altogether better way to handle it? (I *think* I prefer OMITFUNC.)

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


More information about the Remind-fans mailing list