[Remind-Fans] an OMIT holiday moves forward Sun to Mon, Monday things that should move forward don't.

hymie at lactose.homelinux.net hymie at lactose.homelinux.net
Thu Jul 21 10:05:35 EDT 2016


Anne Wainwright writes:
>On Thu, Jul 21, 2016 at 07:50:00AM -0400, hymie! wrote:
>> If I understand correctly, then what you want do is something along these
>> lines:
>> 
>let me just digest that :) see my reply to Dianne.

Your reply to Dianne means that I didn't understand the rules either, so
let me try again.

Your problem starts here:

>OMIT May 1
>REM May 1 AFTER OMIT Sun MSG Workers Day

You are always omitting 1 May even if 1 May is not the actual holiday,
and you are never omitting 2 May when it is.

Try replacing that with something like this (untested):

rem 1 may scanfrom [trigger(today()-28)] satisfy 1
if (wkdaynum(trigdate()) == 0) 
  #sunday
  omit 2 may msg workers day
else
  omit 1 may msg workers day
endif

That should make this line

>REM May 1 2010 *7 AFTER OMIT Sun Tue Wed Thu Sat MSG Dustbin day

work the way you expect.

I set the "scanfrom" to today()-28 because you said that, if Friday is
also a holiday, then Dustbin Day gets postponed even further.  I wasn't
sure how many holidays you might have in a row that you need to worry
about.  So setting the scanfrom to today()-14 might be sufficient.

--hymie!    http://lactose.homelinux.net/~hymie    hymie at lactose.homelinux.net


More information about the Remind-fans mailing list