forked from holidays/definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ng.yaml
97 lines (96 loc) · 1.92 KB
/
ng.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Nigeria holiday definitions for the Ruby Holiday gem.
# Updated: 2020-04-28
# Sources:
# - https://en.wikipedia.org/wiki/Public_holidays_in_Nigeria
---
months:
0:
- name: Good Friday
regions: [ng]
function: easter(year)
function_modifier: -2
- name: Easter Monday
regions: [ng]
function: easter(year)
function_modifier: 1
1:
- name: New Year's Day
regions: [ng]
mday: 1
observed: to_monday_if_weekend(date)
5:
- name: Workers' Day
regions: [ng]
mday: 1
observed: to_monday_if_weekend(date)
- name: Children's Day
regions: [ng]
mday: 27
type: informal
6:
- name: Democracy Day
regions: [ng]
mday: 12
year_ranges:
from: 2018
10:
- name: Independence Day
regions: [ng]
mday: 1
observed: to_monday_if_weekend(date)
12:
- name: Christmas Day
regions: [ng]
mday: 25
observed: to_monday_if_weekend(date)
- name: Boxing Day
regions: [ng]
mday: 26
observed: to_weekday_if_boxing_weekend(date)
tests:
- given:
date: '2008-03-21'
regions: ["ng"]
expect:
name: "Good Friday"
- given:
date: '2008-03-24'
regions: ["ng"]
expect:
name: "Easter Monday"
- given:
date: '2008-01-01'
regions: ["ng"]
expect:
name: "New Year's Day"
- given:
date: '2008-05-01'
regions: ["ng"]
expect:
name: "Workers' Day"
- given:
date: '2008-05-27'
regions: ["ng"]
options: ["informal"]
expect:
name: "Children's Day"
- given:
date: '2019-06-12'
regions: ["ng"]
expect:
name: "Democracy Day"
- given:
date: '2008-10-01'
regions: ["ng"]
expect:
name: "Independence Day"
- given:
date: '2008-12-25'
regions: ["ng"]
expect:
name: "Christmas Day"
- given:
date: '2008-12-26'
regions: ["ng"]
expect:
name: "Boxing Day"