Added data files
This commit is contained in:
parent
563e739a99
commit
e88aae4755
3 changed files with 172 additions and 0 deletions
72
data/gb.yaml
Normal file
72
data/gb.yaml
Normal file
|
@ -0,0 +1,72 @@
|
|||
# Great Britain/United Kingdom holiday definitions for the Ruby Holiday gem.
|
||||
#
|
||||
# Including England, Wales, Scotland, N. Ireland, the Isle of Man, Guernsey
|
||||
# and Jersey.
|
||||
#
|
||||
# Updated: 2008-11-22.
|
||||
# Source: http://en.wikipedia.org/wiki/List_of_holidays_by_country#United_Kingdom_and_Crown_dependencies
|
||||
#
|
||||
# Notes:
|
||||
# - Jersey, Guernsey and the Isle of Man are encode with both their ISO 3166-1 and ISO 3-3166-2 codes.
|
||||
---
|
||||
months:
|
||||
0:
|
||||
- name: Good Friday
|
||||
regions: [gb]
|
||||
function: lambda { |year| easter(year)-2 }
|
||||
- name: Easter Sunday
|
||||
regions: [gb]
|
||||
function: lambda { |year| easter(year) }
|
||||
- name: Easter Monday
|
||||
regions: [gb_eng, gb_wls, gb_eaw, gb_nir]
|
||||
function: lambda { |year| easter(year)+1 }
|
||||
1:
|
||||
- name: New Year's Day
|
||||
regions: [gb]
|
||||
mday: 1
|
||||
- name: New Year's
|
||||
regions: [gb_sct]
|
||||
mday: 2
|
||||
3:
|
||||
- name: St. Piran's Day
|
||||
regions: [gb_con]
|
||||
mday: 5
|
||||
- name: St. Patrick's Day
|
||||
regions: [gb_nir]
|
||||
mday: 17
|
||||
5:
|
||||
- name: May Day
|
||||
regions: [gb]
|
||||
week: 1
|
||||
wday: 1
|
||||
- name: Liberation Day
|
||||
regions: [je, gb_jsy, gg, gb_gsy]
|
||||
mday: 9
|
||||
- name: Bank Holiday
|
||||
regions: [gb]
|
||||
week: -1
|
||||
wday: 1
|
||||
7:
|
||||
- name: Tynwald Day
|
||||
regions: [im, gb_iom]
|
||||
mday: 5
|
||||
- name: Battle of the Boyne
|
||||
regions: [gb_nir]
|
||||
mday: 12
|
||||
8:
|
||||
- name: Bank Holiday
|
||||
regions: [gb_sct]
|
||||
week: 1
|
||||
wday: 1
|
||||
- name: Bank Holiday
|
||||
regions: [gb_eng, gb_wls, gb_eaw]
|
||||
week: -1
|
||||
wday: 1
|
||||
12:
|
||||
- name: Christmas Day
|
||||
regions: [gb]
|
||||
mday: 25
|
||||
- name: Boxing Day
|
||||
regions: [gb]
|
||||
mday: 26
|
||||
|
46
data/ie.yaml
Normal file
46
data/ie.yaml
Normal file
|
@ -0,0 +1,46 @@
|
|||
# Ireland holiday definitions for the Ruby Holiday gem.
|
||||
#
|
||||
# Updated: 2008-11-22.
|
||||
# Source: http://en.wikipedia.org/wiki/Public_holidays_in_the_Republic_of_Ireland
|
||||
---
|
||||
months:
|
||||
0:
|
||||
- name: Easter Monday
|
||||
regions: [ie]
|
||||
function: lambda { |year| easter(year)+1 }
|
||||
1:
|
||||
- name: New Year's Day
|
||||
regions: [ie]
|
||||
mday: 1
|
||||
3:
|
||||
- name: St. Patrick's Day
|
||||
regions: [ie]
|
||||
mday: 17
|
||||
5:
|
||||
- name: May Day
|
||||
regions: [ie]
|
||||
week: 1
|
||||
wday: 1
|
||||
6:
|
||||
- name: Labour Day/May Day
|
||||
regions: [ie]
|
||||
week: 1
|
||||
wday: 1
|
||||
8:
|
||||
- name: August Holiday
|
||||
regions: [ie]
|
||||
week: 1
|
||||
wday: 1
|
||||
10:
|
||||
- name: October Holiday
|
||||
regions: [ie]
|
||||
week: -1
|
||||
wday: 1
|
||||
12:
|
||||
- name: Christmas Day
|
||||
regions: [ie]
|
||||
mday: 25
|
||||
- name: St. Stephen's Day
|
||||
regions: [ie]
|
||||
mday: 26
|
||||
|
54
data/za.yaml
Normal file
54
data/za.yaml
Normal file
|
@ -0,0 +1,54 @@
|
|||
# South African holiday definitions for the Ruby Holiday gem.
|
||||
#
|
||||
# Updated: 2008-11-22.
|
||||
# Sources:
|
||||
# - http://en.wikipedia.org/wiki/Public_holidays_in_South_Africa
|
||||
# - http://www.info.gov.za/aboutsa/holidays.htm
|
||||
---
|
||||
months:
|
||||
0:
|
||||
- name: Good Friday
|
||||
regions: [za]
|
||||
function: lambda { |year| easter(year)-2 }
|
||||
- name: Family Day
|
||||
regions: [za]
|
||||
function: lambda { |year| easter(year)+1 }
|
||||
1:
|
||||
- name: New Year's Day
|
||||
regions: [za]
|
||||
mday: 1
|
||||
3:
|
||||
- name: Human Rights Day
|
||||
regions: [za]
|
||||
mday: 21
|
||||
4:
|
||||
- name: Freedom Day
|
||||
regions: [za]
|
||||
mday: 27
|
||||
5:
|
||||
- name: Workers' Day
|
||||
regions: [za]
|
||||
mday: 1
|
||||
6:
|
||||
- name: Youth Day
|
||||
regions: [za]
|
||||
mday: 16
|
||||
8:
|
||||
- name: National Women's Day
|
||||
regions: [za]
|
||||
mday: 9
|
||||
9:
|
||||
- name: Heritage Day
|
||||
regions: [za]
|
||||
mday: 24
|
||||
12:
|
||||
- name: Day of Reconciliation
|
||||
regions: [za]
|
||||
mday: 16
|
||||
- name: Christmas Day
|
||||
regions: [za]
|
||||
mday: 25
|
||||
- name: Day of Goodwill
|
||||
regions: [za]
|
||||
mday: 26
|
||||
|
Loading…
Reference in a new issue