-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New holidays? #102
Comments
I somewhat remember there being an important reason to not include days-offset-from-easter style holidays, and I have this in a slack message too
But those other 4 look good to me! |
Ah ok I'm remembering why this is Lines 16 to 23 in 7b14f6e
This is the key example of what that comment is trying to explain Lines 121 to 127 in 7b14f6e
For things like Boxing Day, it gets "observed" by the general public relative to what happens on Christmas. Consider the following scenario:
That's why we don't naively wrap up Boxing Day as a pre generated holiday. If we do that, we can't create offset rules correctly because we don't have access to that base holiday (Christmas, here) anymore |
Oh, actually, a closer read of my comment there shows that I'm just warning users that using the pre-created relative holidays that almanac provides won't do "the right thing" when adding observance rules on top of them, but I still provide them, like So I take back what I said, I think adding the ones relative to Easter and Christmas are fine too! |
Thanks! I see what you mean about getting the correct For the Boxing Day example, I think all the other ones are ok, because they're either always on the same day of the week (the Easter ones, since Easter is always on a Sunday), or they're standalone holidays, and their observed date doesn't depend on when another holiday is observed. So, I'll add them all except for Boxing day, and that can be handled separately, if or how you want to add it. |
I created a few new general holidays, but probably they're not all needed in this package. Here's a list of the ones I have. @DavisVaughan if you would like any of them as a PR, could you just check which ones, and I'll put them in? It's also fine if none of these are relevant. Thanks so much!
The text was updated successfully, but these errors were encountered: