[Remind-Fans] Unnecessary "baggage" in Labor Day reminder in holidays.rem?
Jonathan Kamens
jik at kamens.us
Wed Sep 8 12:24:43 EDT 2021
My holidays.rem which I snarfed from somewhere semi-official long, long
ago has this in it:
SET Week_1 1
...
FSET _back(days) TRIGGER(TODAY()-days)
FSET _trig() TRIGGER(TRIGDATE())
...
REM Mon Sep [Week_1] SCANFROM [_back(7)] SATISFY 1
OMIT [_trig()] MSG %"Labor Day%"%
This simpler version seems to calculate Labor Day on exactly the same dates:
SET Week_1 1
...
FSET _back(days) TRIGGER(TODAY()-days)
...
REM Mon Sep [Week_1] SCANFROM [_back(7)] MSG %"Labor Day%"%
So does this even simpler version:
REM Mon Sep 1 MSG %"Labor Day%"%
I'm trying to understand what all the extra baggage (SCANFROM, SATISFY
1, OMIT [_trig()]) is there fore.
Why do I care? Because, separately, I have something in my own reminders
to show me candle-lighting time for the first night of Rosh Hashanah:
SET Shabbat_Lead 18
FSET hd(d,m) HEBDATE(d,m)
FSET yomtovlight(d,m) IIF((WKDAYNUM(hd(d,m)-1) == 6) || \
((WKDAYNUM(hd(d,m)-1) != 5) && \
(d==2 || d==16 || d==23 || (d==22 && m=="Nisan") || \
d==7)), \
TRIGGER(hd(d,m)-1,sunset(hd(d,m)-1)+42), \
TRIGGER(hd(d,m)-1,sunset(hd(d,m)-1)-Shabbat_Lead))
REM [yomtovlight(1, "Tishrey")] OMIT Fri Sat SKIP MSG %"Candles%" %2%
It malfunctioned this year and didn't put the candle-lighting time on my
calendar, I think because Erev Rosh Hashanah was Labor Day and therefore
the SKIP my rule caused the reminder to be omitted because of the OMIT
[_trig()] in the Labor Day rule. That's just a guess, though; honestly I
don't fully understand all this stuff hangs together.
Thanks,
jik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dianne.skoll.ca/pipermail/remind-fans/attachments/20210908/9cc8541b/attachment.htm>
More information about the Remind-fans
mailing list