Skip to content

Commit

Permalink
Add upcoming Saudi holidays (Eid Al Adha) (#584)
Browse files Browse the repository at this point in the history
The 15th of June to the 18th of June of 2024 is a public holiday in Saudi Arabia as per https://holidayapi.com/countries/sa/2024.
  • Loading branch information
OsamaSayegh committed Jun 16, 2024
1 parent 75214d6 commit f2cdf3e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 37 deletions.
37 changes: 8 additions & 29 deletions vendor/holidays/definitions/sa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,45 +56,24 @@ months:
6:
- name: Day of Arafah
regions: [sa]
mday: 27
mday: 15
year_ranges:
limited: [2023]
- name: Day 1 of Eid Al Adha
regions: [sa]
mday: 28
year_ranges:
limited: [2023]
- name: Day 2 of Eid Al Adha
regions: [sa]
mday: 29
year_ranges:
limited: [2023]
- name: Day 3 of Eid Al Adha
regions: [sa]
mday: 30
year_ranges:
limited: [2023]
7:
- name: Day of Arafah
regions: [sa]
mday: 8
year_ranges:
limited: [2022]
limited: [2024]
- name: Day 1 of Eid Al Adha
regions: [sa]
mday: 9
mday: 16
year_ranges:
limited: [2022]
limited: [2024]
- name: Day 2 of Eid Al Adha
regions: [sa]
mday: 10
mday: 17
year_ranges:
limited: [2022]
limited: [2024]
- name: Day 3 of Eid Al Adha
regions: [sa]
mday: 11
mday: 18
year_ranges:
limited: [2022]
limited: [2024]
9:
- name: Saudi National Day
regions: [sa]
Expand Down
12 changes: 4 additions & 8 deletions vendor/holidays/lib/generated_definitions/sa.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,10 @@ def self.holidays_by_month
5 => [{:mday => 2, :year_ranges => { :limited => [2022] },:name => "Festival of Breaking the Fast", :regions => [:sa]},
{:mday => 3, :year_ranges => { :limited => [2022] },:name => "Second Day of the Festival of Breaking the Fast", :regions => [:sa]},
{:mday => 4, :year_ranges => { :limited => [2022] },:name => "Third Day of the Festival of Breaking the Fast", :regions => [:sa]}],
6 => [{:mday => 27, :year_ranges => { :limited => [2023] },:name => "Day of Arafah", :regions => [:sa]},
{:mday => 28, :year_ranges => { :limited => [2023] },:name => "Day 1 of Eid Al Adha", :regions => [:sa]},
{:mday => 29, :year_ranges => { :limited => [2023] },:name => "Day 2 of Eid Al Adha", :regions => [:sa]},
{:mday => 30, :year_ranges => { :limited => [2023] },:name => "Day 3 of Eid Al Adha", :regions => [:sa]}],
7 => [{:mday => 8, :year_ranges => { :limited => [2022] },:name => "Day of Arafah", :regions => [:sa]},
{:mday => 9, :year_ranges => { :limited => [2022] },:name => "Day 1 of Eid Al Adha", :regions => [:sa]},
{:mday => 10, :year_ranges => { :limited => [2022] },:name => "Day 2 of Eid Al Adha", :regions => [:sa]},
{:mday => 11, :year_ranges => { :limited => [2022] },:name => "Day 3 of Eid Al Adha", :regions => [:sa]}],
6 => [{:mday => 15, :year_ranges => { :limited => [2024] },:name => "Day of Arafah", :regions => [:sa]},
{:mday => 16, :year_ranges => { :limited => [2024] },:name => "Day 1 of Eid Al Adha", :regions => [:sa]},
{:mday => 17, :year_ranges => { :limited => [2024] },:name => "Day 2 of Eid Al Adha", :regions => [:sa]},
{:mday => 18, :year_ranges => { :limited => [2024] },:name => "Day 3 of Eid Al Adha", :regions => [:sa]}],
9 => [{:mday => 23, :name => "Saudi National Day", :regions => [:sa]}]
}
end
Expand Down

0 comments on commit f2cdf3e

Please sign in to comment.