[Remind-Fans] Using OMIT for sliding holidays

Alan Young alansyoungiii at gmail.com
Tue May 30 18:37:50 EDT 2006


I sent this to the request address by mistake originally.  Sorry about
that Moderator.

I've just gone through the archives and the newly created cookbook and
either I'm missing the answer I'm looking for or it's so obvious it's
never been needed to be asked.

For a sliding holiday like Memorial Day, I have the following lines:

REM 30 May MSG Memorial Day
REM Mon Jun 1 --7 MSG Memorial Day (observed)
OMIT 29 May

REM Mon SKIP AT 10:30 DURATION 0:30 MSG Development Meeting
REM Mon 1 --7 AFTER AT 13:00 DURATION 1:00 MSG Monthly Update Meeting

Well enough.  Is there an easy way to say something like AFTER AT
13:30 AT 13:00 ?
(The meeting is bumped to 13:30 on Tuesday if the Monday schedule is
missed).  If not, it's not a big deal.

What I really want to know is, is there a way to do

OMIT Mon Jun 1 --7

?

This generates an error (Unknown token: `Mon' (OMIT)) so I know this
isn't correct.  Otherwise I have to remember at the beginning of each
year to go in and fix the OMITs for each company holiday.  Which isn't
that bad I guess, but being a programmer it annoys me to have to
remember to do that when the computer should "just do it".

As long as I'm asking, is there a way to group OMITS?  What I'm
looking for is something like

OMIT-GROUP Company-Holidays
OMIT date-spec
OMIT date-spec
OMIT-GROUP

REM Mon SKIP Company-Holidays AT 10:30 DURATION 0:30 MSG Dev Meeting
REM Mon AFTER Company-Holidays AT 13:00 DURATION 1:00 MSG Monthly Mtg

Thanks for a really great program.  Please don't take any of these
questions as complaints about the program.

After further reading and experimenting I was able to come up with the
following:

IFTRIG Mon Jun 1 --7

ELSE

  REM Mon SKIP AT 10:30 DURATION 0:30 MSG Development Meeting

ENDIF

But that doesn't help with the monthly meeting.
-- 
Alan



More information about the Remind-fans mailing list