-
Notifications
You must be signed in to change notification settings - Fork 136
/
ke.yaml
107 lines (106 loc) · 2.25 KB
/
ke.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
98
99
100
101
102
103
104
105
106
107
# Kenya holiday definitions for the Ruby Holiday gem.
# Updated: 2022-03-06
# Missing Diwali, Idd-ul-Fitr and Idd-ul-Azha
# Sources:
# - https://en.wikipedia.org/wiki/Public_holidays_in_Kenya
# - https://www.timeanddate.com/holidays/kenya/
# - http://www.kenyalaw.org/kl/fileadmin/pdfdownloads/Acts/PublicHolidaysActCap110.pdf
---
months:
0:
- name: Good Friday
regions: [ke]
function: easter(year)
function_modifier: -2
- name: Easter Monday
regions: [ke]
function: easter(year)
function_modifier: 1
1:
- name: New Year's Day
regions: [ke]
mday: 1
observed: to_monday_if_sunday(date)
5:
- name: Labour Day
regions: [ke]
mday: 1
observed: to_monday_if_sunday(date)
6:
- name: Madaraka Day
regions: [ke]
mday: 1
observed: to_monday_if_sunday(date)
10:
- name: Huduma Day
regions: [ke]
mday: 10
observed: to_monday_if_sunday(date)
- name: Mashujaa Day
regions: [ke]
mday: 20
observed: to_monday_if_sunday(date)
12:
- name: Jamhuri Day
regions: [ke]
mday: 12
observed: to_monday_if_sunday(date)
- name: Christmas Day
regions: [ke]
mday: 25
observed: to_monday_if_sunday(date)
- name: Utamaduni Day
regions: [ke]
mday: 26
observed: to_monday_if_sunday(date)
tests:
- given:
date: '2008-03-21'
regions: ["ke"]
expect:
name: "Good Friday"
- given:
date: '2008-03-24'
regions: ["ke"]
expect:
name: "Easter Monday"
- given:
date: '2008-01-01'
regions: ["ke"]
expect:
name: "New Year's Day"
- given:
date: '2008-05-01'
regions: ["ke"]
expect:
name: "Labour Day"
- given:
date: '2019-06-01'
regions: ["ke"]
expect:
name: "Madaraka Day"
- given:
date: '2018-10-10'
regions: ["ke"]
expect:
name: "Huduma Day"
- given:
date: '2018-10-20'
regions: ["ke"]
expect:
name: "Mashujaa Day"
- given:
date: '2019-12-12'
regions: ["ke"]
expect:
name: "Jamhuri Day"
- given:
date: '2008-12-25'
regions: ["ke"]
expect:
name: "Christmas Day"
- given:
date: '2018-12-26'
regions: ["ke"]
expect:
name: "Utamaduni Day"