-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Add United States Holidays #26
Conversation
3a66b38
to
2759b62
Compare
@arcdigital I would maybe consider adding all of the "bank" holidays. Without all of the federal holidays where the banks are closed, we would be unable to use this (I work in the finance industry). Thanks for submitting! |
2759b62
to
85d65b2
Compare
I've updated with all the bank holidays. The US is tricky but I think that makes the most sense. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Could you rebase your branch with our main branch? That way we can run the tests here.
Also, are there region based holidays in the US, which need to be taken care of? I've added notes in the readme for this.
src/Countries/UnitedStates.php
Outdated
{ | ||
return array_merge([ | ||
'New Year\'s Day' => '01-01', | ||
'Juneteenth National Independence Day' => '06-19', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am I right this is a only recent official holiday? For historical correctness, could you not include this for the years it wasn't an official holiday?
Sure I can do that, yes it is a newer holiday. I'll add that logic in. |
Just rebased it. I'll add the logic for Juneteenth. |
a8185e8
to
5659ee9
Compare
@Nielsvanpach should be good to go! rebased, added the logic for Juneteenth, and a second test. |
Thanks! |
I've added all US Bank holidays.