Most observed holidays follow rules. For example, Presidents Day is the 3rd Monday of February.
Webcore is a rules engine.
Certainly (???) we can, rather than relying on outside sources, create a piston that outputs a variable if a day happens to be a holiday… or even the day before a holiday. The folks in the thread on garbage collection alerts, for example, would greatly benefit both from knowing whether today a holiday, but also from knowing the day before in case they need to put their garbage out that night for early morning pickup.
The one major holiday that is ambiguous is Memorial Day, which occurs on the last Monday of May - sometimes that is the fourth Monday of the month, and sometimes it’s the fifth Monday of the month. But again, that can be expressed in the form of a rule… depending on whether the 20, 21, 22, or 23 of May falls on a Saturday.
I’ll begin looking at this in depth this weekend… but if there are any ideas that are floating around out there before that time, please by all means try ‘em out…
Rules for holidays:
Presidents’ Day: 3rd Monday of Feb
Labor Day: 1st Monday of Sept (for day before, would need to reference August dates)
Columbus: 2nd Monday in October
thanksgiving: 4th Thurs in November