Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions data/countries/ZM.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,21 @@ holidays:
en: Youth Day
easter -2:
_name: easter -2
# @source https://zambialii.org/akn/zm/act/1964/14/eng@1996-12-31
easter -1:
name:
en: Holy Saturday
# @attrib https://en.wikipedia.org/wiki/Public_holidays_in_Zambia
easter:
_name: easter
easter 1:
_name: easter 1
# @source https://zambialii.org/akn/zm/act/si/2021/72/eng@2021-08-20/source
# @attrib https://en.wikipedia.org/wiki/Public_holidays_in_Zambia
04-28 and if sunday then next monday:
substitute: true
name:
en: Kenneth Kaunda Day
05-01 and if sunday then next monday:
substitute: true
_name: 05-01
Expand All @@ -40,9 +53,12 @@ holidays:
1st monday in August:
name:
en: Farmers' Day
"2015-10-18":
# @source https://zambiahighcommission.ca/wp/the-national-day-flyer/
# @attrib https://en.wikipedia.org/wiki/Public_holidays_in_Zambia
10-18 and if sunday then next monday:
substitute: true
name:
en: National day of Prayers
en: National Day of Prayer
10-24 and if sunday then next monday:
substitute: true
_name: Independence Day
Expand Down
41 changes: 39 additions & 2 deletions test/fixtures/ZM-2015.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,24 @@
"rule": "easter -2",
"_weekday": "Fri"
},
{
"date": "2015-04-04 00:00:00",
"start": "2015-04-03T22:00:00.000Z",
"end": "2015-04-04T22:00:00.000Z",
"name": "Holy Saturday",
"type": "public",
"rule": "easter -1",
"_weekday": "Sat"
},
{
"date": "2015-04-05 00:00:00",
"start": "2015-04-04T22:00:00.000Z",
"end": "2015-04-05T22:00:00.000Z",
"name": "Easter Sunday",
"type": "public",
"rule": "easter",
"_weekday": "Sun"
},
{
"date": "2015-04-06 00:00:00",
"start": "2015-04-05T22:00:00.000Z",
Expand All @@ -44,6 +62,15 @@
"rule": "easter 1",
"_weekday": "Mon"
},
{
"date": "2015-04-28 00:00:00",
"start": "2015-04-27T22:00:00.000Z",
"end": "2015-04-28T22:00:00.000Z",
"name": "Kenneth Kaunda Day",
"type": "public",
"rule": "04-28 and if sunday then next monday",
"_weekday": "Tue"
},
{
"date": "2015-05-01 00:00:00",
"start": "2015-04-30T22:00:00.000Z",
Expand Down Expand Up @@ -93,11 +120,21 @@
"date": "2015-10-18 00:00:00",
"start": "2015-10-17T22:00:00.000Z",
"end": "2015-10-18T22:00:00.000Z",
"name": "National day of Prayers",
"name": "National Day of Prayer",
"type": "public",
"rule": "2015-10-18",
"rule": "10-18 and if sunday then next monday",
"_weekday": "Sun"
},
{
"date": "2015-10-19 00:00:00",
"start": "2015-10-18T22:00:00.000Z",
"end": "2015-10-19T22:00:00.000Z",
"name": "National Day of Prayer (substitute day)",
"type": "public",
"substitute": true,
"rule": "10-18 and if sunday then next monday",
"_weekday": "Mon"
},
{
"date": "2015-10-24 00:00:00",
"start": "2015-10-23T22:00:00.000Z",
Expand Down
36 changes: 36 additions & 0 deletions test/fixtures/ZM-2016.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,24 @@
"rule": "easter -2",
"_weekday": "Fri"
},
{
"date": "2016-03-26 00:00:00",
"start": "2016-03-25T22:00:00.000Z",
"end": "2016-03-26T22:00:00.000Z",
"name": "Holy Saturday",
"type": "public",
"rule": "easter -1",
"_weekday": "Sat"
},
{
"date": "2016-03-27 00:00:00",
"start": "2016-03-26T22:00:00.000Z",
"end": "2016-03-27T22:00:00.000Z",
"name": "Easter Sunday",
"type": "public",
"rule": "easter",
"_weekday": "Sun"
},
{
"date": "2016-03-28 00:00:00",
"start": "2016-03-27T22:00:00.000Z",
Expand All @@ -44,6 +62,15 @@
"rule": "easter 1",
"_weekday": "Mon"
},
{
"date": "2016-04-28 00:00:00",
"start": "2016-04-27T22:00:00.000Z",
"end": "2016-04-28T22:00:00.000Z",
"name": "Kenneth Kaunda Day",
"type": "public",
"rule": "04-28 and if sunday then next monday",
"_weekday": "Thu"
},
{
"date": "2016-05-01 00:00:00",
"start": "2016-04-30T22:00:00.000Z",
Expand Down Expand Up @@ -99,6 +126,15 @@
"rule": "1st monday in August",
"_weekday": "Mon"
},
{
"date": "2016-10-18 00:00:00",
"start": "2016-10-17T22:00:00.000Z",
"end": "2016-10-18T22:00:00.000Z",
"name": "National Day of Prayer",
"type": "public",
"rule": "10-18 and if sunday then next monday",
"_weekday": "Tue"
},
{
"date": "2016-10-24 00:00:00",
"start": "2016-10-23T22:00:00.000Z",
Expand Down
36 changes: 36 additions & 0 deletions test/fixtures/ZM-2017.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,24 @@
"rule": "easter -2",
"_weekday": "Fri"
},
{
"date": "2017-04-15 00:00:00",
"start": "2017-04-14T22:00:00.000Z",
"end": "2017-04-15T22:00:00.000Z",
"name": "Holy Saturday",
"type": "public",
"rule": "easter -1",
"_weekday": "Sat"
},
{
"date": "2017-04-16 00:00:00",
"start": "2017-04-15T22:00:00.000Z",
"end": "2017-04-16T22:00:00.000Z",
"name": "Easter Sunday",
"type": "public",
"rule": "easter",
"_weekday": "Sun"
},
{
"date": "2017-04-17 00:00:00",
"start": "2017-04-16T22:00:00.000Z",
Expand All @@ -64,6 +82,15 @@
"rule": "easter 1",
"_weekday": "Mon"
},
{
"date": "2017-04-28 00:00:00",
"start": "2017-04-27T22:00:00.000Z",
"end": "2017-04-28T22:00:00.000Z",
"name": "Kenneth Kaunda Day",
"type": "public",
"rule": "04-28 and if sunday then next monday",
"_weekday": "Fri"
},
{
"date": "2017-05-01 00:00:00",
"start": "2017-04-30T22:00:00.000Z",
Expand Down Expand Up @@ -109,6 +136,15 @@
"rule": "1st monday in August",
"_weekday": "Mon"
},
{
"date": "2017-10-18 00:00:00",
"start": "2017-10-17T22:00:00.000Z",
"end": "2017-10-18T22:00:00.000Z",
"name": "National Day of Prayer",
"type": "public",
"rule": "10-18 and if sunday then next monday",
"_weekday": "Wed"
},
{
"date": "2017-10-24 00:00:00",
"start": "2017-10-23T22:00:00.000Z",
Expand Down
36 changes: 36 additions & 0 deletions test/fixtures/ZM-2018.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,24 @@
"rule": "easter -2",
"_weekday": "Fri"
},
{
"date": "2018-03-31 00:00:00",
"start": "2018-03-30T22:00:00.000Z",
"end": "2018-03-31T22:00:00.000Z",
"name": "Holy Saturday",
"type": "public",
"rule": "easter -1",
"_weekday": "Sat"
},
{
"date": "2018-04-01 00:00:00",
"start": "2018-03-31T22:00:00.000Z",
"end": "2018-04-01T22:00:00.000Z",
"name": "Easter Sunday",
"type": "public",
"rule": "easter",
"_weekday": "Sun"
},
{
"date": "2018-04-02 00:00:00",
"start": "2018-04-01T22:00:00.000Z",
Expand All @@ -44,6 +62,15 @@
"rule": "easter 1",
"_weekday": "Mon"
},
{
"date": "2018-04-28 00:00:00",
"start": "2018-04-27T22:00:00.000Z",
"end": "2018-04-28T22:00:00.000Z",
"name": "Kenneth Kaunda Day",
"type": "public",
"rule": "04-28 and if sunday then next monday",
"_weekday": "Sat"
},
{
"date": "2018-05-01 00:00:00",
"start": "2018-04-30T22:00:00.000Z",
Expand Down Expand Up @@ -89,6 +116,15 @@
"rule": "1st monday in August",
"_weekday": "Mon"
},
{
"date": "2018-10-18 00:00:00",
"start": "2018-10-17T22:00:00.000Z",
"end": "2018-10-18T22:00:00.000Z",
"name": "National Day of Prayer",
"type": "public",
"rule": "10-18 and if sunday then next monday",
"_weekday": "Thu"
},
{
"date": "2018-10-24 00:00:00",
"start": "2018-10-23T22:00:00.000Z",
Expand Down
46 changes: 46 additions & 0 deletions test/fixtures/ZM-2019.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,24 @@
"rule": "easter -2",
"_weekday": "Fri"
},
{
"date": "2019-04-20 00:00:00",
"start": "2019-04-19T22:00:00.000Z",
"end": "2019-04-20T22:00:00.000Z",
"name": "Holy Saturday",
"type": "public",
"rule": "easter -1",
"_weekday": "Sat"
},
{
"date": "2019-04-21 00:00:00",
"start": "2019-04-20T22:00:00.000Z",
"end": "2019-04-21T22:00:00.000Z",
"name": "Easter Sunday",
"type": "public",
"rule": "easter",
"_weekday": "Sun"
},
{
"date": "2019-04-22 00:00:00",
"start": "2019-04-21T22:00:00.000Z",
Expand All @@ -44,6 +62,25 @@
"rule": "easter 1",
"_weekday": "Mon"
},
{
"date": "2019-04-28 00:00:00",
"start": "2019-04-27T22:00:00.000Z",
"end": "2019-04-28T22:00:00.000Z",
"name": "Kenneth Kaunda Day",
"type": "public",
"rule": "04-28 and if sunday then next monday",
"_weekday": "Sun"
},
{
"date": "2019-04-29 00:00:00",
"start": "2019-04-28T22:00:00.000Z",
"end": "2019-04-29T22:00:00.000Z",
"name": "Kenneth Kaunda Day (substitute day)",
"type": "public",
"substitute": true,
"rule": "04-28 and if sunday then next monday",
"_weekday": "Mon"
},
{
"date": "2019-05-01 00:00:00",
"start": "2019-04-30T22:00:00.000Z",
Expand Down Expand Up @@ -89,6 +126,15 @@
"rule": "1st monday in August",
"_weekday": "Mon"
},
{
"date": "2019-10-18 00:00:00",
"start": "2019-10-17T22:00:00.000Z",
"end": "2019-10-18T22:00:00.000Z",
"name": "National Day of Prayer",
"type": "public",
"rule": "10-18 and if sunday then next monday",
"_weekday": "Fri"
},
{
"date": "2019-10-24 00:00:00",
"start": "2019-10-23T22:00:00.000Z",
Expand Down
Loading
Loading