DEV: Add polling day for Singapore (#722)

This commit is contained in:
Alan Guo Xiang Tan 2025-04-22 12:08:03 +08:00 committed by GitHub
parent f10b3a399a
commit 5f87c53fe9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -45,6 +45,12 @@ months:
regions: [sg]
mday: 1
observed: to_weekday_if_weekend(date)
- name: Polling Day
regions: [sg]
mday: 3
year_ranges:
limited: [2025]
observed: to_weekday_if_weekend(date)
- name: Vesak Day
regions: [sg]
mday: 12

View File

@ -18,6 +18,7 @@ module Holidays
3 => [{:mday => 31, :year_ranges => { :limited => [2025] },:name => "Hari Raya Puasa", :regions => [:sg]}],
4 => [{:mday => 18, :year_ranges => { :limited => [2025] },:name => "Good Friday", :regions => [:sg]}],
5 => [{:mday => 1, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Labour Day", :regions => [:sg]},
{:mday => 3, :year_ranges => { :limited => [2025] },:observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Polling Day", :regions => [:sg]},
{:mday => 12, :year_ranges => { :limited => [2025] },:name => "Vesak Day", :regions => [:sg]}],
6 => [{:mday => 7, :year_ranges => { :limited => [2025] },:name => "Hari Raya Haji", :regions => [:sg]}],
8 => [{:mday => 9, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "National Day", :regions => [:sg]}],