[Remind-Fans] Omit several weeks possible?
Jostein Berntsen
jbernts at broadpark.no
Thu Jan 19 09:31:59 EST 2012
On 19.01.12,15:16, Jostein Berntsen wrote:
> On 19.01.12,15:03, Borghal Rantipole wrote:
> > Hello,
> >
> > I want to set up weekly recurring events (rehearsals) that skip dates from my school holiday calendar. How do I do this?
> >
> > Example: rehearsals are monday every week but not during easter holidays (april 2 until april 14).
> >
>
> You use PUSH and POP like this:
>
>
> PUSH-OMIT-CONTEXT
> OMIT 2012-04-02 THROUGH 2012-04-14
> REM Monday AT 18:00 DURATION 3:00 MSG Rehearseals
> POP-OMIT-CONTEXT
>
> Or you can have a Vacation function like this:
>
>
> FSET vacation_2012(x) isomitted (x) || \
> (evaltrig("2012-04-02 *1 UNTIL 2012-04-14", x) == x) || \
> (evaltrig("2012-05-30 *1 UNTIL 2010-06-11", x) == x) ||
>
>
> REM Mon SKIP \
> OMITFUNC vacation_2010 \
> AT 7:45 DURATION 8:00 MSG
>
>
> REM 2012-04-02 *1 UNTIL 2012-04-14 MSG Vacation: Easter holidays
> REM 2012-05-30 *1 UNTIL 2012-06-11 MSG Vacation: Italy
>
This should be:
REM Mon SKIP \
OMITFUNC vacation_2012 \
AT 7:45 DURATION 8:00 MSG
in the vacation function.
Jostein
More information about the Remind-fans
mailing list