Skip to content
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

Merged
merged 1 commit into from
Jan 24, 2024
Merged

Conversation

arcdigital
Copy link
Contributor

@arcdigital arcdigital commented Jan 17, 2024

I've added all US Bank holidays.

@arcdigital arcdigital changed the title Add US Holidays Add United States Holidays Jan 17, 2024
@arcdigital arcdigital force-pushed the add-us-holidays branch 2 times, most recently from 3a66b38 to 2759b62 Compare January 17, 2024 17:41
@mikedex
Copy link

mikedex commented Jan 17, 2024

@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!

@arcdigital
Copy link
Contributor Author

I've updated with all the bank holidays. The US is tricky but I think that makes the most sense.

Copy link
Member

@Nielsvanpach Nielsvanpach left a 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.

{
return array_merge([
'New Year\'s Day' => '01-01',
'Juneteenth National Independence Day' => '06-19',
Copy link
Member

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?

@arcdigital
Copy link
Contributor Author

Sure I can do that, yes it is a newer holiday. I'll add that logic in.

@arcdigital
Copy link
Contributor Author

Just rebased it. I'll add the logic for Juneteenth.

@arcdigital
Copy link
Contributor Author

@Nielsvanpach should be good to go! rebased, added the logic for Juneteenth, and a second test.

@Nielsvanpach
Copy link
Member

Thanks!

@Nielsvanpach Nielsvanpach merged commit 95f9772 into spatie:main Jan 24, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants