[Remind-Fans] Thanksgiving (U.S.) rule

Paul Floyd quellism-oxide at yahoo.com
Tue Mar 7 16:29:48 EST 2023


I think the rule in the current defs.rem for the date of U.S. Thanksgiving is incorrect.

In git, the rule specifies the LAST Thursday in November:

REM Last Thu in Nov     SCANFROM -7 ADDOMIT MSG %"Thanksgiving Day%"

But the U.S. government says it's supposed to be the FOURTH Thursday in November.  This year, for instance, Thanksgiving falls on November 23, but the above rule puts it at November 30.

Per git log, the change to the rule was introduced in commit 375a0fb7 on Mar 11, 2022:

-REM Thu Nov [Week_4]   SCANFROM -7 ADDOMIT MSG %"Thanksgiving Day%"
+REM Last Thu in Nov    SCANFROM -7 ADDOMIT MSG %"Thanksgiving Day%"

I believe the previous rule was correct.  FWIW, the rule in https://dianne.skoll.ca/wiki/Defs.rem is:

REM  Thu Nov [Week_4]    SCANFROM [_back(7)] SATISFY 1
OMIT [trigdate()] MSG %"Thanksgiving%" Day


Thx,

- Cedric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dianne.skoll.ca/pipermail/remind-fans/attachments/20230307/37c6e294/attachment.htm>


More information about the Remind-fans mailing list