Skip to content

Commit

Permalink
Merge pull request #138 from kylekatarnls/fix/us-new-year-observance
Browse files Browse the repository at this point in the history
Observe 12-31 in USA if next New Year is on Saturday
  • Loading branch information
kylekatarnls authored Oct 19, 2024
2 parents 0cbc513 + d4be5b2 commit 69f34c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Cmixin/HolidayNames/en.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'mlk-day' => 'Martin Luther King Jr. Day',
'national-day' => 'National Day',
'new-year' => 'New Year',
'new-year-previous-day' => 'New Year previous day',
'new-year-next-day' => 'New Year next day',
'pentecost' => 'Pentecost',
'pentecost-monday' => 'Pentecost Monday',
Expand Down
4 changes: 3 additions & 1 deletion src/Cmixin/Holidays/us-national.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php

return [
'new-year' => '= 01-01 substitute', // New Year's Day
'new-year' => '= 01-01 on Monday,Tuesday,Wednesday,Thursday,Friday', // New Year's Day
'new-year-next-day' => '= 01-02 on Monday', // New Year's Day (observance)
'new-year-previous-day' => '= 12-31 on Friday', // New Year's Day (observance)
// Martin Luther King Jr. Day
'mlk-day' => '= third Monday of january',
'3rd-monday-in-february' => '= third Monday of February',
Expand Down

0 comments on commit 69f34c0

Please sign in to comment.