[Remind-Fans] Different sets of holidays (was Re: I need your help: Holiday data)
Dianne Skoll
dianne at skoll.ca
Sat Nov 2 21:45:15 EDT 2024
On Sat, 2 Nov 2024 19:18:44 -0500
Tim Chase via Remind-fans <remind-fans at lists.skoll.ca> wrote:
> I want to keep my holiday determinations in one place. However
> they are OMITs for some events and not for others. For example,
> our city has most-but-not-all US Federal holidays off. And
> environmental-services/trash-pickup is based on the City holiday
> schedule. However those holiday dates DO count as OMITs for
> other events. And the school holiday schedule is a third
> mostly-the-same-but-slightly-different set of holidays.
There's no really nice solution to this. One way is to set a variable
to say which holidays we're interested in, and another variable to say
whether or not to just OMIT them or OMIT them and also print the name
/ make a calendar entry. Then have a DO file that takes care of the
holidays. Something like:
IF print_them
OMIT 1 Jan MSG New Year's Day
ELSE
OMIT 1 Jan
ENDIF
# Let's say something is not a holiday for school purposes
IF holidays_wanted != "school"
IF print_them
OMIT ... MSG whatever
ELSE
OMIT ...
ENDIF
ENDIF
Then from the calling file:
# For the calendar
SET print_them 1
SET holidays_wanted "standard"
DO holidays.rem
# School stuff
CLEAR-OMIT-CONTEXT
SET print_them 0
SET holidays_wanted "school"
DO holidays.rem
Yeah... not super pretty. :(
Regards,
Dianne.
More information about the Remind-fans
mailing list