Skip to content

Commit 872bd37

Browse files
committed
Merge branch 'feat-zambian-holidays'
2 parents 1a89283 + a58c1e1 commit 872bd37

16 files changed

Lines changed: 238 additions & 4 deletions

data/countries/ZM.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,15 @@ holidays:
4040
1st monday in August:
4141
name:
4242
en: Farmers' Day
43-
"2015-10-18":
43+
# @source https://www.lusakatimes.com/2021/07/07/april-28-declared-holiday-in-honour-of-the-late-dr-kaunda/
44+
04-28 since 2022 and if sunday then next monday:
45+
substitute: true
46+
name:
47+
en: Kenneth Kaunda Day
48+
10-18 and if sunday then next monday:
49+
substitute: true
4450
name:
45-
en: National day of Prayers
51+
en: National Day of Prayers
4652
10-24 and if sunday then next monday:
4753
substitute: true
4854
_name: Independence Day

test/fixtures/ZM-2015.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,21 @@
9393
"date": "2015-10-18 00:00:00",
9494
"start": "2015-10-17T22:00:00.000Z",
9595
"end": "2015-10-18T22:00:00.000Z",
96-
"name": "National day of Prayers",
96+
"name": "National Day of Prayers",
9797
"type": "public",
98-
"rule": "2015-10-18",
98+
"rule": "10-18 and if sunday then next monday",
9999
"_weekday": "Sun"
100100
},
101+
{
102+
"date": "2015-10-19 00:00:00",
103+
"start": "2015-10-18T22:00:00.000Z",
104+
"end": "2015-10-19T22:00:00.000Z",
105+
"name": "National Day of Prayers (substitute day)",
106+
"type": "public",
107+
"substitute": true,
108+
"rule": "10-18 and if sunday then next monday",
109+
"_weekday": "Mon"
110+
},
101111
{
102112
"date": "2015-10-24 00:00:00",
103113
"start": "2015-10-23T22:00:00.000Z",

test/fixtures/ZM-2016.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,15 @@
9999
"rule": "1st monday in August",
100100
"_weekday": "Mon"
101101
},
102+
{
103+
"date": "2016-10-18 00:00:00",
104+
"start": "2016-10-17T22:00:00.000Z",
105+
"end": "2016-10-18T22:00:00.000Z",
106+
"name": "National Day of Prayers",
107+
"type": "public",
108+
"rule": "10-18 and if sunday then next monday",
109+
"_weekday": "Tue"
110+
},
102111
{
103112
"date": "2016-10-24 00:00:00",
104113
"start": "2016-10-23T22:00:00.000Z",

test/fixtures/ZM-2017.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,15 @@
109109
"rule": "1st monday in August",
110110
"_weekday": "Mon"
111111
},
112+
{
113+
"date": "2017-10-18 00:00:00",
114+
"start": "2017-10-17T22:00:00.000Z",
115+
"end": "2017-10-18T22:00:00.000Z",
116+
"name": "National Day of Prayers",
117+
"type": "public",
118+
"rule": "10-18 and if sunday then next monday",
119+
"_weekday": "Wed"
120+
},
112121
{
113122
"date": "2017-10-24 00:00:00",
114123
"start": "2017-10-23T22:00:00.000Z",

test/fixtures/ZM-2018.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@
8989
"rule": "1st monday in August",
9090
"_weekday": "Mon"
9191
},
92+
{
93+
"date": "2018-10-18 00:00:00",
94+
"start": "2018-10-17T22:00:00.000Z",
95+
"end": "2018-10-18T22:00:00.000Z",
96+
"name": "National Day of Prayers",
97+
"type": "public",
98+
"rule": "10-18 and if sunday then next monday",
99+
"_weekday": "Thu"
100+
},
92101
{
93102
"date": "2018-10-24 00:00:00",
94103
"start": "2018-10-23T22:00:00.000Z",

test/fixtures/ZM-2019.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@
8989
"rule": "1st monday in August",
9090
"_weekday": "Mon"
9191
},
92+
{
93+
"date": "2019-10-18 00:00:00",
94+
"start": "2019-10-17T22:00:00.000Z",
95+
"end": "2019-10-18T22:00:00.000Z",
96+
"name": "National Day of Prayers",
97+
"type": "public",
98+
"rule": "10-18 and if sunday then next monday",
99+
"_weekday": "Fri"
100+
},
92101
{
93102
"date": "2019-10-24 00:00:00",
94103
"start": "2019-10-23T22:00:00.000Z",

test/fixtures/ZM-2020.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,25 @@
8989
"rule": "1st monday in August",
9090
"_weekday": "Mon"
9191
},
92+
{
93+
"date": "2020-10-18 00:00:00",
94+
"start": "2020-10-17T22:00:00.000Z",
95+
"end": "2020-10-18T22:00:00.000Z",
96+
"name": "National Day of Prayers",
97+
"type": "public",
98+
"rule": "10-18 and if sunday then next monday",
99+
"_weekday": "Sun"
100+
},
101+
{
102+
"date": "2020-10-19 00:00:00",
103+
"start": "2020-10-18T22:00:00.000Z",
104+
"end": "2020-10-19T22:00:00.000Z",
105+
"name": "National Day of Prayers (substitute day)",
106+
"type": "public",
107+
"substitute": true,
108+
"rule": "10-18 and if sunday then next monday",
109+
"_weekday": "Mon"
110+
},
92111
{
93112
"date": "2020-10-24 00:00:00",
94113
"start": "2020-10-23T22:00:00.000Z",

test/fixtures/ZM-2021.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@
8989
"rule": "1st monday in August",
9090
"_weekday": "Mon"
9191
},
92+
{
93+
"date": "2021-10-18 00:00:00",
94+
"start": "2021-10-17T22:00:00.000Z",
95+
"end": "2021-10-18T22:00:00.000Z",
96+
"name": "National Day of Prayers",
97+
"type": "public",
98+
"rule": "10-18 and if sunday then next monday",
99+
"_weekday": "Mon"
100+
},
92101
{
93102
"date": "2021-10-24 00:00:00",
94103
"start": "2021-10-23T22:00:00.000Z",

test/fixtures/ZM-2022.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@
4444
"rule": "easter 1",
4545
"_weekday": "Mon"
4646
},
47+
{
48+
"date": "2022-04-28 00:00:00",
49+
"start": "2022-04-27T22:00:00.000Z",
50+
"end": "2022-04-28T22:00:00.000Z",
51+
"name": "Kenneth Kaunda Day",
52+
"type": "public",
53+
"rule": "04-28 since 2022 and if sunday then next monday",
54+
"_weekday": "Thu"
55+
},
4756
{
4857
"date": "2022-05-01 00:00:00",
4958
"start": "2022-04-30T22:00:00.000Z",
@@ -99,6 +108,15 @@
99108
"rule": "1st monday in August",
100109
"_weekday": "Mon"
101110
},
111+
{
112+
"date": "2022-10-18 00:00:00",
113+
"start": "2022-10-17T22:00:00.000Z",
114+
"end": "2022-10-18T22:00:00.000Z",
115+
"name": "National Day of Prayers",
116+
"type": "public",
117+
"rule": "10-18 and if sunday then next monday",
118+
"_weekday": "Tue"
119+
},
102120
{
103121
"date": "2022-10-24 00:00:00",
104122
"start": "2022-10-23T22:00:00.000Z",

test/fixtures/ZM-2023.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@
6464
"rule": "easter 1",
6565
"_weekday": "Mon"
6666
},
67+
{
68+
"date": "2023-04-28 00:00:00",
69+
"start": "2023-04-27T22:00:00.000Z",
70+
"end": "2023-04-28T22:00:00.000Z",
71+
"name": "Kenneth Kaunda Day",
72+
"type": "public",
73+
"rule": "04-28 since 2022 and if sunday then next monday",
74+
"_weekday": "Fri"
75+
},
6776
{
6877
"date": "2023-05-01 00:00:00",
6978
"start": "2023-04-30T22:00:00.000Z",
@@ -109,6 +118,15 @@
109118
"rule": "1st monday in August",
110119
"_weekday": "Mon"
111120
},
121+
{
122+
"date": "2023-10-18 00:00:00",
123+
"start": "2023-10-17T22:00:00.000Z",
124+
"end": "2023-10-18T22:00:00.000Z",
125+
"name": "National Day of Prayers",
126+
"type": "public",
127+
"rule": "10-18 and if sunday then next monday",
128+
"_weekday": "Wed"
129+
},
112130
{
113131
"date": "2023-10-24 00:00:00",
114132
"start": "2023-10-23T22:00:00.000Z",

0 commit comments

Comments
 (0)