[Remind-Fans] OMIT and THROUGH for every year

Tim Chase remind at tim.thechases.com
Wed Jul 27 09:37:01 EDT 2022


On 2022-07-27, Dianne Skoll wrote:
> Ian! D. Allen wrote:
> > What is the best/shortest way to OMIT a range of dates in *every*
> > year? The remind man page is silent on this issue.
[snip] 
> For large/custom blocks of OMITs, an OMITFUNC is currently the best
> solution.  For your example, something like:
> 
> # Function that is true for our summer holidays
> FSET summer_holidays(x) monnum(x) >= 6 && monnum(x) <= 8
> 
> REM SKIP ... whatever ... OMITFUNC summer_holidays MSG Won't be
> issued in Jun through Aug

dagnabbit, you're too speedy, Diane :-)

I was in the middle composing a similar "sounces like an OMITFUNC"
reply when yours showed up.  But I like the recommendations you
said wouldn't be too hard to add.  Looking forward to them as I've
reached for similar, wanting to either omit school things over
summer break ("OMIT May 31 THROUGH Aug 9") only have things apply
outside the school year ("OMIT Aug 9 THROUGH May 30" where I imagine
that if the date-pair was reversed like that, it would increment
the year for the 2nd date).  I currently do them with OMITFUNC but
that sort of new syntax reads a lot more cleanly.

Thanks!

-Tim






More information about the Remind-fans mailing list