From 5387f58f6adfe807642ea8aef8650185adcf8d18 Mon Sep 17 00:00:00 2001 From: havardnyboe <40893697+havardnyboe@users.noreply.github.com> Date: Fri, 24 Feb 2023 15:30:30 +0100 Subject: [PATCH] Generated and ran test files --- LICENSE | 2 + test/fixtures/NO-2015.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/NO-2016.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/NO-2017.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/NO-2018.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/NO-2019.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/NO-2020.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/NO-2021.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/NO-2022.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/NO-2023.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/NO-2024.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/NO-2025.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/SJ-2015.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/SJ-2016.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/SJ-2017.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/SJ-2018.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/SJ-2019.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/SJ-2020.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/SJ-2021.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/SJ-2022.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/SJ-2023.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/SJ-2024.json | 119 ++++++++++++++++++++++++++++++++++++- test/fixtures/SJ-2025.json | 119 ++++++++++++++++++++++++++++++++++++- 23 files changed, 2598 insertions(+), 22 deletions(-) diff --git a/LICENSE b/LICENSE index a9bea3bd0..3834e727d 100644 --- a/LICENSE +++ b/LICENSE @@ -184,6 +184,8 @@ https://id.wikipedia.org/wiki/Hari_libur_nasional_di_Indonesia https://ja.wikipedia.org/wiki/%E5%9B%BD%E6%B0%91%E3%81%AE%E7%A5%9D%E6%97%A5 https://lb.wikipedia.org/wiki/Gesetzlech_Feierdeeg_zu_L%C3%ABtzebuerg https://nl.wikipedia.org/wiki/Feestdagen_in_Nederland +https://no.wikipedia.org/wiki/Allehelgensaften +https://no.wikipedia.org/wiki/Norges_offisielle_flaggdager https://pt.wikipedia.org/wiki/Cabo_Verde#Feriados https://pt.wikipedia.org/wiki/Feriados_em_Angola https://pt.wikipedia.org/wiki/Feriados_no_Brasil diff --git a/test/fixtures/NO-2015.json b/test/fixtures/NO-2015.json index 70e210f7b..11295f345 100644 --- a/test/fixtures/NO-2015.json +++ b/test/fixtures/NO-2015.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Thu" }, + { + "date": "2015-01-21 00:00:00", + "start": "2015-01-20T23:00:00.000Z", + "end": "2015-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Wed" + }, + { + "date": "2015-02-06 00:00:00", + "start": "2015-02-05T23:00:00.000Z", + "end": "2015-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Fri" + }, { "date": "2015-02-08 00:00:00", "start": "2015-02-07T23:00:00.000Z", @@ -17,6 +35,15 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2015-02-14 00:00:00", + "start": "2015-02-13T23:00:00.000Z", + "end": "2015-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Sat" + }, { "date": "2015-02-15 00:00:00", "start": "2015-02-14T23:00:00.000Z", @@ -26,6 +53,33 @@ "rule": "easter -49", "_weekday": "Sun" }, + { + "date": "2015-02-18 00:00:00", + "start": "2015-02-17T23:00:00.000Z", + "end": "2015-02-18T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2015-02-21 00:00:00", + "start": "2015-02-20T23:00:00.000Z", + "end": "2015-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Sat" + }, + { + "date": "2015-03-08 00:00:00", + "start": "2015-03-07T23:00:00.000Z", + "end": "2015-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Sun" + }, { "date": "2015-03-29 00:00:00", "start": "2015-03-28T23:00:00.000Z", @@ -35,6 +89,15 @@ "rule": "easter -7", "_weekday": "Sun" }, + { + "date": "2015-04-01 00:00:00", + "start": "2015-03-31T22:00:00.000Z", + "end": "2015-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Wed" + }, { "date": "2015-04-02 00:00:00", "start": "2015-04-01T22:00:00.000Z", @@ -102,7 +165,7 @@ "date": "2015-05-17 00:00:00", "start": "2015-05-16T22:00:00.000Z", "end": "2015-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Sun" @@ -125,6 +188,15 @@ "rule": "easter 50", "_weekday": "Mon" }, + { + "date": "2015-06-07 00:00:00", + "start": "2015-06-06T22:00:00.000Z", + "end": "2015-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Sun" + }, { "date": "2015-06-23 00:00:00", "start": "2015-06-22T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Tue" }, + { + "date": "2015-07-04 00:00:00", + "start": "2015-07-03T22:00:00.000Z", + "end": "2015-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Sat" + }, + { + "date": "2015-07-20 00:00:00", + "start": "2015-07-19T22:00:00.000Z", + "end": "2015-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Mon" + }, + { + "date": "2015-07-29 00:00:00", + "start": "2015-07-28T22:00:00.000Z", + "end": "2015-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Wed" + }, + { + "date": "2015-08-19 00:00:00", + "start": "2015-08-18T22:00:00.000Z", + "end": "2015-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Wed" + }, + { + "date": "2015-11-01 00:00:00", + "start": "2015-10-31T23:00:00.000Z", + "end": "2015-11-01T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2015-11-08 00:00:00", "start": "2015-11-07T23:00:00.000Z", diff --git a/test/fixtures/NO-2016.json b/test/fixtures/NO-2016.json index 8c51f0246..9acb2e1c1 100644 --- a/test/fixtures/NO-2016.json +++ b/test/fixtures/NO-2016.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Fri" }, + { + "date": "2016-01-21 00:00:00", + "start": "2016-01-20T23:00:00.000Z", + "end": "2016-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Thu" + }, + { + "date": "2016-02-06 00:00:00", + "start": "2016-02-05T23:00:00.000Z", + "end": "2016-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Sat" + }, { "date": "2016-02-07 00:00:00", "start": "2016-02-06T23:00:00.000Z", @@ -17,6 +35,15 @@ "rule": "easter -49", "_weekday": "Sun" }, + { + "date": "2016-02-10 00:00:00", + "start": "2016-02-09T23:00:00.000Z", + "end": "2016-02-10T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, { "date": "2016-02-14 00:00:00", "start": "2016-02-13T23:00:00.000Z", @@ -26,6 +53,33 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2016-02-14 00:00:00", + "start": "2016-02-13T23:00:00.000Z", + "end": "2016-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Sun" + }, + { + "date": "2016-02-21 00:00:00", + "start": "2016-02-20T23:00:00.000Z", + "end": "2016-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Sun" + }, + { + "date": "2016-03-08 00:00:00", + "start": "2016-03-07T23:00:00.000Z", + "end": "2016-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Tue" + }, { "date": "2016-03-20 00:00:00", "start": "2016-03-19T23:00:00.000Z", @@ -71,6 +125,15 @@ "rule": "easter 1", "_weekday": "Mon" }, + { + "date": "2016-04-01 00:00:00", + "start": "2016-03-31T22:00:00.000Z", + "end": "2016-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Fri" + }, { "date": "2016-05-01 00:00:00", "start": "2016-04-30T22:00:00.000Z", @@ -120,11 +183,20 @@ "date": "2016-05-17 00:00:00", "start": "2016-05-16T22:00:00.000Z", "end": "2016-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Tue" }, + { + "date": "2016-06-07 00:00:00", + "start": "2016-06-06T22:00:00.000Z", + "end": "2016-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Tue" + }, { "date": "2016-06-23 00:00:00", "start": "2016-06-22T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Thu" }, + { + "date": "2016-07-04 00:00:00", + "start": "2016-07-03T22:00:00.000Z", + "end": "2016-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Mon" + }, + { + "date": "2016-07-20 00:00:00", + "start": "2016-07-19T22:00:00.000Z", + "end": "2016-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Wed" + }, + { + "date": "2016-07-29 00:00:00", + "start": "2016-07-28T22:00:00.000Z", + "end": "2016-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Fri" + }, + { + "date": "2016-08-19 00:00:00", + "start": "2016-08-18T22:00:00.000Z", + "end": "2016-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Fri" + }, + { + "date": "2016-11-06 00:00:00", + "start": "2016-11-05T23:00:00.000Z", + "end": "2016-11-06T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2016-11-13 00:00:00", "start": "2016-11-12T23:00:00.000Z", diff --git a/test/fixtures/NO-2017.json b/test/fixtures/NO-2017.json index 79405ea17..8114fa8d3 100644 --- a/test/fixtures/NO-2017.json +++ b/test/fixtures/NO-2017.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Sun" }, + { + "date": "2017-01-21 00:00:00", + "start": "2017-01-20T23:00:00.000Z", + "end": "2017-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Sat" + }, + { + "date": "2017-02-06 00:00:00", + "start": "2017-02-05T23:00:00.000Z", + "end": "2017-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Mon" + }, { "date": "2017-02-12 00:00:00", "start": "2017-02-11T23:00:00.000Z", @@ -17,6 +35,24 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2017-02-14 00:00:00", + "start": "2017-02-13T23:00:00.000Z", + "end": "2017-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Tue" + }, + { + "date": "2017-02-21 00:00:00", + "start": "2017-02-20T23:00:00.000Z", + "end": "2017-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Tue" + }, { "date": "2017-02-26 00:00:00", "start": "2017-02-25T23:00:00.000Z", @@ -26,6 +62,33 @@ "rule": "easter -49", "_weekday": "Sun" }, + { + "date": "2017-03-01 00:00:00", + "start": "2017-02-28T23:00:00.000Z", + "end": "2017-03-01T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2017-03-08 00:00:00", + "start": "2017-03-07T23:00:00.000Z", + "end": "2017-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Wed" + }, + { + "date": "2017-04-01 00:00:00", + "start": "2017-03-31T22:00:00.000Z", + "end": "2017-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Sat" + }, { "date": "2017-04-09 00:00:00", "start": "2017-04-08T22:00:00.000Z", @@ -93,7 +156,7 @@ "date": "2017-05-17 00:00:00", "start": "2017-05-16T22:00:00.000Z", "end": "2017-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Wed" @@ -125,6 +188,15 @@ "rule": "easter 50", "_weekday": "Mon" }, + { + "date": "2017-06-07 00:00:00", + "start": "2017-06-06T22:00:00.000Z", + "end": "2017-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Wed" + }, { "date": "2017-06-23 00:00:00", "start": "2017-06-22T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Fri" }, + { + "date": "2017-07-04 00:00:00", + "start": "2017-07-03T22:00:00.000Z", + "end": "2017-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Tue" + }, + { + "date": "2017-07-20 00:00:00", + "start": "2017-07-19T22:00:00.000Z", + "end": "2017-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Thu" + }, + { + "date": "2017-07-29 00:00:00", + "start": "2017-07-28T22:00:00.000Z", + "end": "2017-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Sat" + }, + { + "date": "2017-08-19 00:00:00", + "start": "2017-08-18T22:00:00.000Z", + "end": "2017-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Sat" + }, + { + "date": "2017-11-05 00:00:00", + "start": "2017-11-04T23:00:00.000Z", + "end": "2017-11-05T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2017-11-12 00:00:00", "start": "2017-11-11T23:00:00.000Z", diff --git a/test/fixtures/NO-2018.json b/test/fixtures/NO-2018.json index 45006acbc..b505019ed 100644 --- a/test/fixtures/NO-2018.json +++ b/test/fixtures/NO-2018.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Mon" }, + { + "date": "2018-01-21 00:00:00", + "start": "2018-01-20T23:00:00.000Z", + "end": "2018-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Sun" + }, + { + "date": "2018-02-06 00:00:00", + "start": "2018-02-05T23:00:00.000Z", + "end": "2018-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Tue" + }, { "date": "2018-02-11 00:00:00", "start": "2018-02-10T23:00:00.000Z", @@ -26,6 +44,42 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2018-02-14 00:00:00", + "start": "2018-02-13T23:00:00.000Z", + "end": "2018-02-14T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2018-02-14 00:00:00", + "start": "2018-02-13T23:00:00.000Z", + "end": "2018-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Wed" + }, + { + "date": "2018-02-21 00:00:00", + "start": "2018-02-20T23:00:00.000Z", + "end": "2018-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Wed" + }, + { + "date": "2018-03-08 00:00:00", + "start": "2018-03-07T23:00:00.000Z", + "end": "2018-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Thu" + }, { "date": "2018-03-25 00:00:00", "start": "2018-03-24T23:00:00.000Z", @@ -53,6 +107,15 @@ "rule": "easter -2", "_weekday": "Fri" }, + { + "date": "2018-04-01 00:00:00", + "start": "2018-03-31T22:00:00.000Z", + "end": "2018-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Sun" + }, { "date": "2018-04-01 00:00:00", "start": "2018-03-31T22:00:00.000Z", @@ -102,7 +165,7 @@ "date": "2018-05-17 00:00:00", "start": "2018-05-16T22:00:00.000Z", "end": "2018-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Thu" @@ -125,6 +188,15 @@ "rule": "easter 50", "_weekday": "Mon" }, + { + "date": "2018-06-07 00:00:00", + "start": "2018-06-06T22:00:00.000Z", + "end": "2018-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Thu" + }, { "date": "2018-06-23 00:00:00", "start": "2018-06-22T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Sat" }, + { + "date": "2018-07-04 00:00:00", + "start": "2018-07-03T22:00:00.000Z", + "end": "2018-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Wed" + }, + { + "date": "2018-07-20 00:00:00", + "start": "2018-07-19T22:00:00.000Z", + "end": "2018-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Fri" + }, + { + "date": "2018-07-29 00:00:00", + "start": "2018-07-28T22:00:00.000Z", + "end": "2018-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Sun" + }, + { + "date": "2018-08-19 00:00:00", + "start": "2018-08-18T22:00:00.000Z", + "end": "2018-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Sun" + }, + { + "date": "2018-11-04 00:00:00", + "start": "2018-11-03T23:00:00.000Z", + "end": "2018-11-04T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2018-11-11 00:00:00", "start": "2018-11-10T23:00:00.000Z", diff --git a/test/fixtures/NO-2019.json b/test/fixtures/NO-2019.json index 5bd83ebca..f1241c85c 100644 --- a/test/fixtures/NO-2019.json +++ b/test/fixtures/NO-2019.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Tue" }, + { + "date": "2019-01-21 00:00:00", + "start": "2019-01-20T23:00:00.000Z", + "end": "2019-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Mon" + }, + { + "date": "2019-02-06 00:00:00", + "start": "2019-02-05T23:00:00.000Z", + "end": "2019-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Wed" + }, { "date": "2019-02-10 00:00:00", "start": "2019-02-09T23:00:00.000Z", @@ -17,6 +35,24 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2019-02-14 00:00:00", + "start": "2019-02-13T23:00:00.000Z", + "end": "2019-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Thu" + }, + { + "date": "2019-02-21 00:00:00", + "start": "2019-02-20T23:00:00.000Z", + "end": "2019-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Thu" + }, { "date": "2019-03-03 00:00:00", "start": "2019-03-02T23:00:00.000Z", @@ -26,6 +62,33 @@ "rule": "easter -49", "_weekday": "Sun" }, + { + "date": "2019-03-06 00:00:00", + "start": "2019-03-05T23:00:00.000Z", + "end": "2019-03-06T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2019-03-08 00:00:00", + "start": "2019-03-07T23:00:00.000Z", + "end": "2019-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Fri" + }, + { + "date": "2019-04-01 00:00:00", + "start": "2019-03-31T22:00:00.000Z", + "end": "2019-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Mon" + }, { "date": "2019-04-14 00:00:00", "start": "2019-04-13T22:00:00.000Z", @@ -93,7 +156,7 @@ "date": "2019-05-17 00:00:00", "start": "2019-05-16T22:00:00.000Z", "end": "2019-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Fri" @@ -107,6 +170,15 @@ "rule": "easter 39", "_weekday": "Thu" }, + { + "date": "2019-06-07 00:00:00", + "start": "2019-06-06T22:00:00.000Z", + "end": "2019-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Fri" + }, { "date": "2019-06-09 00:00:00", "start": "2019-06-08T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Sun" }, + { + "date": "2019-07-04 00:00:00", + "start": "2019-07-03T22:00:00.000Z", + "end": "2019-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Thu" + }, + { + "date": "2019-07-20 00:00:00", + "start": "2019-07-19T22:00:00.000Z", + "end": "2019-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Sat" + }, + { + "date": "2019-07-29 00:00:00", + "start": "2019-07-28T22:00:00.000Z", + "end": "2019-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Mon" + }, + { + "date": "2019-08-19 00:00:00", + "start": "2019-08-18T22:00:00.000Z", + "end": "2019-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Mon" + }, + { + "date": "2019-11-03 00:00:00", + "start": "2019-11-02T23:00:00.000Z", + "end": "2019-11-03T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2019-11-10 00:00:00", "start": "2019-11-09T23:00:00.000Z", diff --git a/test/fixtures/NO-2020.json b/test/fixtures/NO-2020.json index 779d9b0b9..59371380b 100644 --- a/test/fixtures/NO-2020.json +++ b/test/fixtures/NO-2020.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Wed" }, + { + "date": "2020-01-21 00:00:00", + "start": "2020-01-20T23:00:00.000Z", + "end": "2020-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Tue" + }, + { + "date": "2020-02-06 00:00:00", + "start": "2020-02-05T23:00:00.000Z", + "end": "2020-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Thu" + }, { "date": "2020-02-09 00:00:00", "start": "2020-02-08T23:00:00.000Z", @@ -17,6 +35,24 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2020-02-14 00:00:00", + "start": "2020-02-13T23:00:00.000Z", + "end": "2020-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Fri" + }, + { + "date": "2020-02-21 00:00:00", + "start": "2020-02-20T23:00:00.000Z", + "end": "2020-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Fri" + }, { "date": "2020-02-23 00:00:00", "start": "2020-02-22T23:00:00.000Z", @@ -26,6 +62,33 @@ "rule": "easter -49", "_weekday": "Sun" }, + { + "date": "2020-02-26 00:00:00", + "start": "2020-02-25T23:00:00.000Z", + "end": "2020-02-26T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2020-03-08 00:00:00", + "start": "2020-03-07T23:00:00.000Z", + "end": "2020-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Sun" + }, + { + "date": "2020-04-01 00:00:00", + "start": "2020-03-31T22:00:00.000Z", + "end": "2020-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Wed" + }, { "date": "2020-04-05 00:00:00", "start": "2020-04-04T22:00:00.000Z", @@ -93,7 +156,7 @@ "date": "2020-05-17 00:00:00", "start": "2020-05-16T22:00:00.000Z", "end": "2020-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Sun" @@ -125,6 +188,15 @@ "rule": "easter 50", "_weekday": "Mon" }, + { + "date": "2020-06-07 00:00:00", + "start": "2020-06-06T22:00:00.000Z", + "end": "2020-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Sun" + }, { "date": "2020-06-23 00:00:00", "start": "2020-06-22T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Tue" }, + { + "date": "2020-07-04 00:00:00", + "start": "2020-07-03T22:00:00.000Z", + "end": "2020-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Sat" + }, + { + "date": "2020-07-20 00:00:00", + "start": "2020-07-19T22:00:00.000Z", + "end": "2020-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Mon" + }, + { + "date": "2020-07-29 00:00:00", + "start": "2020-07-28T22:00:00.000Z", + "end": "2020-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Wed" + }, + { + "date": "2020-08-19 00:00:00", + "start": "2020-08-18T22:00:00.000Z", + "end": "2020-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Wed" + }, + { + "date": "2020-11-01 00:00:00", + "start": "2020-10-31T23:00:00.000Z", + "end": "2020-11-01T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2020-11-08 00:00:00", "start": "2020-11-07T23:00:00.000Z", diff --git a/test/fixtures/NO-2021.json b/test/fixtures/NO-2021.json index 5da7ffebb..1d521f00f 100644 --- a/test/fixtures/NO-2021.json +++ b/test/fixtures/NO-2021.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Fri" }, + { + "date": "2021-01-21 00:00:00", + "start": "2021-01-20T23:00:00.000Z", + "end": "2021-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Thu" + }, + { + "date": "2021-02-06 00:00:00", + "start": "2021-02-05T23:00:00.000Z", + "end": "2021-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Sat" + }, { "date": "2021-02-14 00:00:00", "start": "2021-02-13T23:00:00.000Z", @@ -26,6 +44,42 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2021-02-14 00:00:00", + "start": "2021-02-13T23:00:00.000Z", + "end": "2021-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Sun" + }, + { + "date": "2021-02-17 00:00:00", + "start": "2021-02-16T23:00:00.000Z", + "end": "2021-02-17T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2021-02-21 00:00:00", + "start": "2021-02-20T23:00:00.000Z", + "end": "2021-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Sun" + }, + { + "date": "2021-03-08 00:00:00", + "start": "2021-03-07T23:00:00.000Z", + "end": "2021-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Mon" + }, { "date": "2021-03-28 00:00:00", "start": "2021-03-27T23:00:00.000Z", @@ -35,6 +89,15 @@ "rule": "easter -7", "_weekday": "Sun" }, + { + "date": "2021-04-01 00:00:00", + "start": "2021-03-31T22:00:00.000Z", + "end": "2021-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Thu" + }, { "date": "2021-04-01 00:00:00", "start": "2021-03-31T22:00:00.000Z", @@ -102,7 +165,7 @@ "date": "2021-05-17 00:00:00", "start": "2021-05-16T22:00:00.000Z", "end": "2021-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Mon" @@ -125,6 +188,15 @@ "rule": "easter 50", "_weekday": "Mon" }, + { + "date": "2021-06-07 00:00:00", + "start": "2021-06-06T22:00:00.000Z", + "end": "2021-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Mon" + }, { "date": "2021-06-23 00:00:00", "start": "2021-06-22T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Wed" }, + { + "date": "2021-07-04 00:00:00", + "start": "2021-07-03T22:00:00.000Z", + "end": "2021-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Sun" + }, + { + "date": "2021-07-20 00:00:00", + "start": "2021-07-19T22:00:00.000Z", + "end": "2021-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Tue" + }, + { + "date": "2021-07-29 00:00:00", + "start": "2021-07-28T22:00:00.000Z", + "end": "2021-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Thu" + }, + { + "date": "2021-08-19 00:00:00", + "start": "2021-08-18T22:00:00.000Z", + "end": "2021-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Thu" + }, + { + "date": "2021-11-07 00:00:00", + "start": "2021-11-06T23:00:00.000Z", + "end": "2021-11-07T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2021-11-14 00:00:00", "start": "2021-11-13T23:00:00.000Z", diff --git a/test/fixtures/NO-2022.json b/test/fixtures/NO-2022.json index e902243fd..40c4f0628 100644 --- a/test/fixtures/NO-2022.json +++ b/test/fixtures/NO-2022.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Sat" }, + { + "date": "2022-01-21 00:00:00", + "start": "2022-01-20T23:00:00.000Z", + "end": "2022-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Fri" + }, + { + "date": "2022-02-06 00:00:00", + "start": "2022-02-05T23:00:00.000Z", + "end": "2022-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Sun" + }, { "date": "2022-02-13 00:00:00", "start": "2022-02-12T23:00:00.000Z", @@ -17,6 +35,24 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2022-02-14 00:00:00", + "start": "2022-02-13T23:00:00.000Z", + "end": "2022-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Mon" + }, + { + "date": "2022-02-21 00:00:00", + "start": "2022-02-20T23:00:00.000Z", + "end": "2022-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Mon" + }, { "date": "2022-02-27 00:00:00", "start": "2022-02-26T23:00:00.000Z", @@ -26,6 +62,33 @@ "rule": "easter -49", "_weekday": "Sun" }, + { + "date": "2022-03-02 00:00:00", + "start": "2022-03-01T23:00:00.000Z", + "end": "2022-03-02T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2022-03-08 00:00:00", + "start": "2022-03-07T23:00:00.000Z", + "end": "2022-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Tue" + }, + { + "date": "2022-04-01 00:00:00", + "start": "2022-03-31T22:00:00.000Z", + "end": "2022-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Fri" + }, { "date": "2022-04-10 00:00:00", "start": "2022-04-09T22:00:00.000Z", @@ -93,7 +156,7 @@ "date": "2022-05-17 00:00:00", "start": "2022-05-16T22:00:00.000Z", "end": "2022-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Tue" @@ -125,6 +188,15 @@ "rule": "easter 50", "_weekday": "Mon" }, + { + "date": "2022-06-07 00:00:00", + "start": "2022-06-06T22:00:00.000Z", + "end": "2022-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Tue" + }, { "date": "2022-06-23 00:00:00", "start": "2022-06-22T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Thu" }, + { + "date": "2022-07-04 00:00:00", + "start": "2022-07-03T22:00:00.000Z", + "end": "2022-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Mon" + }, + { + "date": "2022-07-20 00:00:00", + "start": "2022-07-19T22:00:00.000Z", + "end": "2022-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Wed" + }, + { + "date": "2022-07-29 00:00:00", + "start": "2022-07-28T22:00:00.000Z", + "end": "2022-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Fri" + }, + { + "date": "2022-08-19 00:00:00", + "start": "2022-08-18T22:00:00.000Z", + "end": "2022-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Fri" + }, + { + "date": "2022-11-06 00:00:00", + "start": "2022-11-05T23:00:00.000Z", + "end": "2022-11-06T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2022-11-13 00:00:00", "start": "2022-11-12T23:00:00.000Z", diff --git a/test/fixtures/NO-2023.json b/test/fixtures/NO-2023.json index f4d963dc9..71b4d30a4 100644 --- a/test/fixtures/NO-2023.json +++ b/test/fixtures/NO-2023.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Sun" }, + { + "date": "2023-01-21 00:00:00", + "start": "2023-01-20T23:00:00.000Z", + "end": "2023-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Sat" + }, + { + "date": "2023-02-06 00:00:00", + "start": "2023-02-05T23:00:00.000Z", + "end": "2023-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Mon" + }, { "date": "2023-02-12 00:00:00", "start": "2023-02-11T23:00:00.000Z", @@ -17,6 +35,15 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2023-02-14 00:00:00", + "start": "2023-02-13T23:00:00.000Z", + "end": "2023-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Tue" + }, { "date": "2023-02-19 00:00:00", "start": "2023-02-18T23:00:00.000Z", @@ -26,6 +53,42 @@ "rule": "easter -49", "_weekday": "Sun" }, + { + "date": "2023-02-21 00:00:00", + "start": "2023-02-20T23:00:00.000Z", + "end": "2023-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Tue" + }, + { + "date": "2023-02-22 00:00:00", + "start": "2023-02-21T23:00:00.000Z", + "end": "2023-02-22T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2023-03-08 00:00:00", + "start": "2023-03-07T23:00:00.000Z", + "end": "2023-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Wed" + }, + { + "date": "2023-04-01 00:00:00", + "start": "2023-03-31T22:00:00.000Z", + "end": "2023-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Sat" + }, { "date": "2023-04-02 00:00:00", "start": "2023-04-01T22:00:00.000Z", @@ -93,7 +156,7 @@ "date": "2023-05-17 00:00:00", "start": "2023-05-16T22:00:00.000Z", "end": "2023-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Wed" @@ -125,6 +188,15 @@ "rule": "easter 50", "_weekday": "Mon" }, + { + "date": "2023-06-07 00:00:00", + "start": "2023-06-06T22:00:00.000Z", + "end": "2023-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Wed" + }, { "date": "2023-06-23 00:00:00", "start": "2023-06-22T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Fri" }, + { + "date": "2023-07-04 00:00:00", + "start": "2023-07-03T22:00:00.000Z", + "end": "2023-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Tue" + }, + { + "date": "2023-07-20 00:00:00", + "start": "2023-07-19T22:00:00.000Z", + "end": "2023-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Thu" + }, + { + "date": "2023-07-29 00:00:00", + "start": "2023-07-28T22:00:00.000Z", + "end": "2023-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Sat" + }, + { + "date": "2023-08-19 00:00:00", + "start": "2023-08-18T22:00:00.000Z", + "end": "2023-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Sat" + }, + { + "date": "2023-11-05 00:00:00", + "start": "2023-11-04T23:00:00.000Z", + "end": "2023-11-05T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2023-11-12 00:00:00", "start": "2023-11-11T23:00:00.000Z", diff --git a/test/fixtures/NO-2024.json b/test/fixtures/NO-2024.json index 1c25b70a9..01b1b0f4a 100644 --- a/test/fixtures/NO-2024.json +++ b/test/fixtures/NO-2024.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Mon" }, + { + "date": "2024-01-21 00:00:00", + "start": "2024-01-20T23:00:00.000Z", + "end": "2024-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Sun" + }, + { + "date": "2024-02-06 00:00:00", + "start": "2024-02-05T23:00:00.000Z", + "end": "2024-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Tue" + }, { "date": "2024-02-11 00:00:00", "start": "2024-02-10T23:00:00.000Z", @@ -26,6 +44,42 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2024-02-14 00:00:00", + "start": "2024-02-13T23:00:00.000Z", + "end": "2024-02-14T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2024-02-14 00:00:00", + "start": "2024-02-13T23:00:00.000Z", + "end": "2024-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Wed" + }, + { + "date": "2024-02-21 00:00:00", + "start": "2024-02-20T23:00:00.000Z", + "end": "2024-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Wed" + }, + { + "date": "2024-03-08 00:00:00", + "start": "2024-03-07T23:00:00.000Z", + "end": "2024-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Fri" + }, { "date": "2024-03-24 00:00:00", "start": "2024-03-23T23:00:00.000Z", @@ -71,6 +125,15 @@ "rule": "easter 1", "_weekday": "Mon" }, + { + "date": "2024-04-01 00:00:00", + "start": "2024-03-31T22:00:00.000Z", + "end": "2024-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Mon" + }, { "date": "2024-05-01 00:00:00", "start": "2024-04-30T22:00:00.000Z", @@ -102,7 +165,7 @@ "date": "2024-05-17 00:00:00", "start": "2024-05-16T22:00:00.000Z", "end": "2024-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Fri" @@ -125,6 +188,15 @@ "rule": "easter 50", "_weekday": "Mon" }, + { + "date": "2024-06-07 00:00:00", + "start": "2024-06-06T22:00:00.000Z", + "end": "2024-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Fri" + }, { "date": "2024-06-23 00:00:00", "start": "2024-06-22T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Sun" }, + { + "date": "2024-07-04 00:00:00", + "start": "2024-07-03T22:00:00.000Z", + "end": "2024-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Thu" + }, + { + "date": "2024-07-20 00:00:00", + "start": "2024-07-19T22:00:00.000Z", + "end": "2024-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Sat" + }, + { + "date": "2024-07-29 00:00:00", + "start": "2024-07-28T22:00:00.000Z", + "end": "2024-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Mon" + }, + { + "date": "2024-08-19 00:00:00", + "start": "2024-08-18T22:00:00.000Z", + "end": "2024-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Mon" + }, + { + "date": "2024-11-03 00:00:00", + "start": "2024-11-02T23:00:00.000Z", + "end": "2024-11-03T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2024-11-10 00:00:00", "start": "2024-11-09T23:00:00.000Z", diff --git a/test/fixtures/NO-2025.json b/test/fixtures/NO-2025.json index c654db801..a42d6b6bd 100644 --- a/test/fixtures/NO-2025.json +++ b/test/fixtures/NO-2025.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Wed" }, + { + "date": "2025-01-21 00:00:00", + "start": "2025-01-20T23:00:00.000Z", + "end": "2025-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Tue" + }, + { + "date": "2025-02-06 00:00:00", + "start": "2025-02-05T23:00:00.000Z", + "end": "2025-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Thu" + }, { "date": "2025-02-09 00:00:00", "start": "2025-02-08T23:00:00.000Z", @@ -17,6 +35,24 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2025-02-14 00:00:00", + "start": "2025-02-13T23:00:00.000Z", + "end": "2025-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Fri" + }, + { + "date": "2025-02-21 00:00:00", + "start": "2025-02-20T23:00:00.000Z", + "end": "2025-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Fri" + }, { "date": "2025-03-02 00:00:00", "start": "2025-03-01T23:00:00.000Z", @@ -26,6 +62,33 @@ "rule": "easter -49", "_weekday": "Sun" }, + { + "date": "2025-03-05 00:00:00", + "start": "2025-03-04T23:00:00.000Z", + "end": "2025-03-05T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2025-03-08 00:00:00", + "start": "2025-03-07T23:00:00.000Z", + "end": "2025-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Sat" + }, + { + "date": "2025-04-01 00:00:00", + "start": "2025-03-31T22:00:00.000Z", + "end": "2025-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Tue" + }, { "date": "2025-04-13 00:00:00", "start": "2025-04-12T22:00:00.000Z", @@ -93,7 +156,7 @@ "date": "2025-05-17 00:00:00", "start": "2025-05-16T22:00:00.000Z", "end": "2025-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Sat" @@ -107,6 +170,15 @@ "rule": "easter 39", "_weekday": "Thu" }, + { + "date": "2025-06-07 00:00:00", + "start": "2025-06-06T22:00:00.000Z", + "end": "2025-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Sat" + }, { "date": "2025-06-08 00:00:00", "start": "2025-06-07T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Mon" }, + { + "date": "2025-07-04 00:00:00", + "start": "2025-07-03T22:00:00.000Z", + "end": "2025-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Fri" + }, + { + "date": "2025-07-20 00:00:00", + "start": "2025-07-19T22:00:00.000Z", + "end": "2025-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Sun" + }, + { + "date": "2025-07-29 00:00:00", + "start": "2025-07-28T22:00:00.000Z", + "end": "2025-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Tue" + }, + { + "date": "2025-08-19 00:00:00", + "start": "2025-08-18T22:00:00.000Z", + "end": "2025-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Tue" + }, + { + "date": "2025-11-02 00:00:00", + "start": "2025-11-01T23:00:00.000Z", + "end": "2025-11-02T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2025-11-09 00:00:00", "start": "2025-11-08T23:00:00.000Z", diff --git a/test/fixtures/SJ-2015.json b/test/fixtures/SJ-2015.json index 70e210f7b..11295f345 100644 --- a/test/fixtures/SJ-2015.json +++ b/test/fixtures/SJ-2015.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Thu" }, + { + "date": "2015-01-21 00:00:00", + "start": "2015-01-20T23:00:00.000Z", + "end": "2015-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Wed" + }, + { + "date": "2015-02-06 00:00:00", + "start": "2015-02-05T23:00:00.000Z", + "end": "2015-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Fri" + }, { "date": "2015-02-08 00:00:00", "start": "2015-02-07T23:00:00.000Z", @@ -17,6 +35,15 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2015-02-14 00:00:00", + "start": "2015-02-13T23:00:00.000Z", + "end": "2015-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Sat" + }, { "date": "2015-02-15 00:00:00", "start": "2015-02-14T23:00:00.000Z", @@ -26,6 +53,33 @@ "rule": "easter -49", "_weekday": "Sun" }, + { + "date": "2015-02-18 00:00:00", + "start": "2015-02-17T23:00:00.000Z", + "end": "2015-02-18T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2015-02-21 00:00:00", + "start": "2015-02-20T23:00:00.000Z", + "end": "2015-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Sat" + }, + { + "date": "2015-03-08 00:00:00", + "start": "2015-03-07T23:00:00.000Z", + "end": "2015-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Sun" + }, { "date": "2015-03-29 00:00:00", "start": "2015-03-28T23:00:00.000Z", @@ -35,6 +89,15 @@ "rule": "easter -7", "_weekday": "Sun" }, + { + "date": "2015-04-01 00:00:00", + "start": "2015-03-31T22:00:00.000Z", + "end": "2015-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Wed" + }, { "date": "2015-04-02 00:00:00", "start": "2015-04-01T22:00:00.000Z", @@ -102,7 +165,7 @@ "date": "2015-05-17 00:00:00", "start": "2015-05-16T22:00:00.000Z", "end": "2015-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Sun" @@ -125,6 +188,15 @@ "rule": "easter 50", "_weekday": "Mon" }, + { + "date": "2015-06-07 00:00:00", + "start": "2015-06-06T22:00:00.000Z", + "end": "2015-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Sun" + }, { "date": "2015-06-23 00:00:00", "start": "2015-06-22T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Tue" }, + { + "date": "2015-07-04 00:00:00", + "start": "2015-07-03T22:00:00.000Z", + "end": "2015-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Sat" + }, + { + "date": "2015-07-20 00:00:00", + "start": "2015-07-19T22:00:00.000Z", + "end": "2015-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Mon" + }, + { + "date": "2015-07-29 00:00:00", + "start": "2015-07-28T22:00:00.000Z", + "end": "2015-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Wed" + }, + { + "date": "2015-08-19 00:00:00", + "start": "2015-08-18T22:00:00.000Z", + "end": "2015-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Wed" + }, + { + "date": "2015-11-01 00:00:00", + "start": "2015-10-31T23:00:00.000Z", + "end": "2015-11-01T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2015-11-08 00:00:00", "start": "2015-11-07T23:00:00.000Z", diff --git a/test/fixtures/SJ-2016.json b/test/fixtures/SJ-2016.json index 8c51f0246..9acb2e1c1 100644 --- a/test/fixtures/SJ-2016.json +++ b/test/fixtures/SJ-2016.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Fri" }, + { + "date": "2016-01-21 00:00:00", + "start": "2016-01-20T23:00:00.000Z", + "end": "2016-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Thu" + }, + { + "date": "2016-02-06 00:00:00", + "start": "2016-02-05T23:00:00.000Z", + "end": "2016-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Sat" + }, { "date": "2016-02-07 00:00:00", "start": "2016-02-06T23:00:00.000Z", @@ -17,6 +35,15 @@ "rule": "easter -49", "_weekday": "Sun" }, + { + "date": "2016-02-10 00:00:00", + "start": "2016-02-09T23:00:00.000Z", + "end": "2016-02-10T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, { "date": "2016-02-14 00:00:00", "start": "2016-02-13T23:00:00.000Z", @@ -26,6 +53,33 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2016-02-14 00:00:00", + "start": "2016-02-13T23:00:00.000Z", + "end": "2016-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Sun" + }, + { + "date": "2016-02-21 00:00:00", + "start": "2016-02-20T23:00:00.000Z", + "end": "2016-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Sun" + }, + { + "date": "2016-03-08 00:00:00", + "start": "2016-03-07T23:00:00.000Z", + "end": "2016-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Tue" + }, { "date": "2016-03-20 00:00:00", "start": "2016-03-19T23:00:00.000Z", @@ -71,6 +125,15 @@ "rule": "easter 1", "_weekday": "Mon" }, + { + "date": "2016-04-01 00:00:00", + "start": "2016-03-31T22:00:00.000Z", + "end": "2016-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Fri" + }, { "date": "2016-05-01 00:00:00", "start": "2016-04-30T22:00:00.000Z", @@ -120,11 +183,20 @@ "date": "2016-05-17 00:00:00", "start": "2016-05-16T22:00:00.000Z", "end": "2016-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Tue" }, + { + "date": "2016-06-07 00:00:00", + "start": "2016-06-06T22:00:00.000Z", + "end": "2016-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Tue" + }, { "date": "2016-06-23 00:00:00", "start": "2016-06-22T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Thu" }, + { + "date": "2016-07-04 00:00:00", + "start": "2016-07-03T22:00:00.000Z", + "end": "2016-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Mon" + }, + { + "date": "2016-07-20 00:00:00", + "start": "2016-07-19T22:00:00.000Z", + "end": "2016-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Wed" + }, + { + "date": "2016-07-29 00:00:00", + "start": "2016-07-28T22:00:00.000Z", + "end": "2016-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Fri" + }, + { + "date": "2016-08-19 00:00:00", + "start": "2016-08-18T22:00:00.000Z", + "end": "2016-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Fri" + }, + { + "date": "2016-11-06 00:00:00", + "start": "2016-11-05T23:00:00.000Z", + "end": "2016-11-06T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2016-11-13 00:00:00", "start": "2016-11-12T23:00:00.000Z", diff --git a/test/fixtures/SJ-2017.json b/test/fixtures/SJ-2017.json index 79405ea17..8114fa8d3 100644 --- a/test/fixtures/SJ-2017.json +++ b/test/fixtures/SJ-2017.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Sun" }, + { + "date": "2017-01-21 00:00:00", + "start": "2017-01-20T23:00:00.000Z", + "end": "2017-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Sat" + }, + { + "date": "2017-02-06 00:00:00", + "start": "2017-02-05T23:00:00.000Z", + "end": "2017-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Mon" + }, { "date": "2017-02-12 00:00:00", "start": "2017-02-11T23:00:00.000Z", @@ -17,6 +35,24 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2017-02-14 00:00:00", + "start": "2017-02-13T23:00:00.000Z", + "end": "2017-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Tue" + }, + { + "date": "2017-02-21 00:00:00", + "start": "2017-02-20T23:00:00.000Z", + "end": "2017-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Tue" + }, { "date": "2017-02-26 00:00:00", "start": "2017-02-25T23:00:00.000Z", @@ -26,6 +62,33 @@ "rule": "easter -49", "_weekday": "Sun" }, + { + "date": "2017-03-01 00:00:00", + "start": "2017-02-28T23:00:00.000Z", + "end": "2017-03-01T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2017-03-08 00:00:00", + "start": "2017-03-07T23:00:00.000Z", + "end": "2017-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Wed" + }, + { + "date": "2017-04-01 00:00:00", + "start": "2017-03-31T22:00:00.000Z", + "end": "2017-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Sat" + }, { "date": "2017-04-09 00:00:00", "start": "2017-04-08T22:00:00.000Z", @@ -93,7 +156,7 @@ "date": "2017-05-17 00:00:00", "start": "2017-05-16T22:00:00.000Z", "end": "2017-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Wed" @@ -125,6 +188,15 @@ "rule": "easter 50", "_weekday": "Mon" }, + { + "date": "2017-06-07 00:00:00", + "start": "2017-06-06T22:00:00.000Z", + "end": "2017-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Wed" + }, { "date": "2017-06-23 00:00:00", "start": "2017-06-22T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Fri" }, + { + "date": "2017-07-04 00:00:00", + "start": "2017-07-03T22:00:00.000Z", + "end": "2017-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Tue" + }, + { + "date": "2017-07-20 00:00:00", + "start": "2017-07-19T22:00:00.000Z", + "end": "2017-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Thu" + }, + { + "date": "2017-07-29 00:00:00", + "start": "2017-07-28T22:00:00.000Z", + "end": "2017-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Sat" + }, + { + "date": "2017-08-19 00:00:00", + "start": "2017-08-18T22:00:00.000Z", + "end": "2017-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Sat" + }, + { + "date": "2017-11-05 00:00:00", + "start": "2017-11-04T23:00:00.000Z", + "end": "2017-11-05T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2017-11-12 00:00:00", "start": "2017-11-11T23:00:00.000Z", diff --git a/test/fixtures/SJ-2018.json b/test/fixtures/SJ-2018.json index 45006acbc..b505019ed 100644 --- a/test/fixtures/SJ-2018.json +++ b/test/fixtures/SJ-2018.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Mon" }, + { + "date": "2018-01-21 00:00:00", + "start": "2018-01-20T23:00:00.000Z", + "end": "2018-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Sun" + }, + { + "date": "2018-02-06 00:00:00", + "start": "2018-02-05T23:00:00.000Z", + "end": "2018-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Tue" + }, { "date": "2018-02-11 00:00:00", "start": "2018-02-10T23:00:00.000Z", @@ -26,6 +44,42 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2018-02-14 00:00:00", + "start": "2018-02-13T23:00:00.000Z", + "end": "2018-02-14T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2018-02-14 00:00:00", + "start": "2018-02-13T23:00:00.000Z", + "end": "2018-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Wed" + }, + { + "date": "2018-02-21 00:00:00", + "start": "2018-02-20T23:00:00.000Z", + "end": "2018-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Wed" + }, + { + "date": "2018-03-08 00:00:00", + "start": "2018-03-07T23:00:00.000Z", + "end": "2018-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Thu" + }, { "date": "2018-03-25 00:00:00", "start": "2018-03-24T23:00:00.000Z", @@ -53,6 +107,15 @@ "rule": "easter -2", "_weekday": "Fri" }, + { + "date": "2018-04-01 00:00:00", + "start": "2018-03-31T22:00:00.000Z", + "end": "2018-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Sun" + }, { "date": "2018-04-01 00:00:00", "start": "2018-03-31T22:00:00.000Z", @@ -102,7 +165,7 @@ "date": "2018-05-17 00:00:00", "start": "2018-05-16T22:00:00.000Z", "end": "2018-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Thu" @@ -125,6 +188,15 @@ "rule": "easter 50", "_weekday": "Mon" }, + { + "date": "2018-06-07 00:00:00", + "start": "2018-06-06T22:00:00.000Z", + "end": "2018-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Thu" + }, { "date": "2018-06-23 00:00:00", "start": "2018-06-22T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Sat" }, + { + "date": "2018-07-04 00:00:00", + "start": "2018-07-03T22:00:00.000Z", + "end": "2018-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Wed" + }, + { + "date": "2018-07-20 00:00:00", + "start": "2018-07-19T22:00:00.000Z", + "end": "2018-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Fri" + }, + { + "date": "2018-07-29 00:00:00", + "start": "2018-07-28T22:00:00.000Z", + "end": "2018-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Sun" + }, + { + "date": "2018-08-19 00:00:00", + "start": "2018-08-18T22:00:00.000Z", + "end": "2018-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Sun" + }, + { + "date": "2018-11-04 00:00:00", + "start": "2018-11-03T23:00:00.000Z", + "end": "2018-11-04T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2018-11-11 00:00:00", "start": "2018-11-10T23:00:00.000Z", diff --git a/test/fixtures/SJ-2019.json b/test/fixtures/SJ-2019.json index 5bd83ebca..f1241c85c 100644 --- a/test/fixtures/SJ-2019.json +++ b/test/fixtures/SJ-2019.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Tue" }, + { + "date": "2019-01-21 00:00:00", + "start": "2019-01-20T23:00:00.000Z", + "end": "2019-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Mon" + }, + { + "date": "2019-02-06 00:00:00", + "start": "2019-02-05T23:00:00.000Z", + "end": "2019-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Wed" + }, { "date": "2019-02-10 00:00:00", "start": "2019-02-09T23:00:00.000Z", @@ -17,6 +35,24 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2019-02-14 00:00:00", + "start": "2019-02-13T23:00:00.000Z", + "end": "2019-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Thu" + }, + { + "date": "2019-02-21 00:00:00", + "start": "2019-02-20T23:00:00.000Z", + "end": "2019-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Thu" + }, { "date": "2019-03-03 00:00:00", "start": "2019-03-02T23:00:00.000Z", @@ -26,6 +62,33 @@ "rule": "easter -49", "_weekday": "Sun" }, + { + "date": "2019-03-06 00:00:00", + "start": "2019-03-05T23:00:00.000Z", + "end": "2019-03-06T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2019-03-08 00:00:00", + "start": "2019-03-07T23:00:00.000Z", + "end": "2019-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Fri" + }, + { + "date": "2019-04-01 00:00:00", + "start": "2019-03-31T22:00:00.000Z", + "end": "2019-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Mon" + }, { "date": "2019-04-14 00:00:00", "start": "2019-04-13T22:00:00.000Z", @@ -93,7 +156,7 @@ "date": "2019-05-17 00:00:00", "start": "2019-05-16T22:00:00.000Z", "end": "2019-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Fri" @@ -107,6 +170,15 @@ "rule": "easter 39", "_weekday": "Thu" }, + { + "date": "2019-06-07 00:00:00", + "start": "2019-06-06T22:00:00.000Z", + "end": "2019-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Fri" + }, { "date": "2019-06-09 00:00:00", "start": "2019-06-08T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Sun" }, + { + "date": "2019-07-04 00:00:00", + "start": "2019-07-03T22:00:00.000Z", + "end": "2019-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Thu" + }, + { + "date": "2019-07-20 00:00:00", + "start": "2019-07-19T22:00:00.000Z", + "end": "2019-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Sat" + }, + { + "date": "2019-07-29 00:00:00", + "start": "2019-07-28T22:00:00.000Z", + "end": "2019-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Mon" + }, + { + "date": "2019-08-19 00:00:00", + "start": "2019-08-18T22:00:00.000Z", + "end": "2019-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Mon" + }, + { + "date": "2019-11-03 00:00:00", + "start": "2019-11-02T23:00:00.000Z", + "end": "2019-11-03T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2019-11-10 00:00:00", "start": "2019-11-09T23:00:00.000Z", diff --git a/test/fixtures/SJ-2020.json b/test/fixtures/SJ-2020.json index 779d9b0b9..59371380b 100644 --- a/test/fixtures/SJ-2020.json +++ b/test/fixtures/SJ-2020.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Wed" }, + { + "date": "2020-01-21 00:00:00", + "start": "2020-01-20T23:00:00.000Z", + "end": "2020-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Tue" + }, + { + "date": "2020-02-06 00:00:00", + "start": "2020-02-05T23:00:00.000Z", + "end": "2020-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Thu" + }, { "date": "2020-02-09 00:00:00", "start": "2020-02-08T23:00:00.000Z", @@ -17,6 +35,24 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2020-02-14 00:00:00", + "start": "2020-02-13T23:00:00.000Z", + "end": "2020-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Fri" + }, + { + "date": "2020-02-21 00:00:00", + "start": "2020-02-20T23:00:00.000Z", + "end": "2020-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Fri" + }, { "date": "2020-02-23 00:00:00", "start": "2020-02-22T23:00:00.000Z", @@ -26,6 +62,33 @@ "rule": "easter -49", "_weekday": "Sun" }, + { + "date": "2020-02-26 00:00:00", + "start": "2020-02-25T23:00:00.000Z", + "end": "2020-02-26T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2020-03-08 00:00:00", + "start": "2020-03-07T23:00:00.000Z", + "end": "2020-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Sun" + }, + { + "date": "2020-04-01 00:00:00", + "start": "2020-03-31T22:00:00.000Z", + "end": "2020-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Wed" + }, { "date": "2020-04-05 00:00:00", "start": "2020-04-04T22:00:00.000Z", @@ -93,7 +156,7 @@ "date": "2020-05-17 00:00:00", "start": "2020-05-16T22:00:00.000Z", "end": "2020-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Sun" @@ -125,6 +188,15 @@ "rule": "easter 50", "_weekday": "Mon" }, + { + "date": "2020-06-07 00:00:00", + "start": "2020-06-06T22:00:00.000Z", + "end": "2020-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Sun" + }, { "date": "2020-06-23 00:00:00", "start": "2020-06-22T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Tue" }, + { + "date": "2020-07-04 00:00:00", + "start": "2020-07-03T22:00:00.000Z", + "end": "2020-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Sat" + }, + { + "date": "2020-07-20 00:00:00", + "start": "2020-07-19T22:00:00.000Z", + "end": "2020-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Mon" + }, + { + "date": "2020-07-29 00:00:00", + "start": "2020-07-28T22:00:00.000Z", + "end": "2020-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Wed" + }, + { + "date": "2020-08-19 00:00:00", + "start": "2020-08-18T22:00:00.000Z", + "end": "2020-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Wed" + }, + { + "date": "2020-11-01 00:00:00", + "start": "2020-10-31T23:00:00.000Z", + "end": "2020-11-01T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2020-11-08 00:00:00", "start": "2020-11-07T23:00:00.000Z", diff --git a/test/fixtures/SJ-2021.json b/test/fixtures/SJ-2021.json index 5da7ffebb..1d521f00f 100644 --- a/test/fixtures/SJ-2021.json +++ b/test/fixtures/SJ-2021.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Fri" }, + { + "date": "2021-01-21 00:00:00", + "start": "2021-01-20T23:00:00.000Z", + "end": "2021-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Thu" + }, + { + "date": "2021-02-06 00:00:00", + "start": "2021-02-05T23:00:00.000Z", + "end": "2021-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Sat" + }, { "date": "2021-02-14 00:00:00", "start": "2021-02-13T23:00:00.000Z", @@ -26,6 +44,42 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2021-02-14 00:00:00", + "start": "2021-02-13T23:00:00.000Z", + "end": "2021-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Sun" + }, + { + "date": "2021-02-17 00:00:00", + "start": "2021-02-16T23:00:00.000Z", + "end": "2021-02-17T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2021-02-21 00:00:00", + "start": "2021-02-20T23:00:00.000Z", + "end": "2021-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Sun" + }, + { + "date": "2021-03-08 00:00:00", + "start": "2021-03-07T23:00:00.000Z", + "end": "2021-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Mon" + }, { "date": "2021-03-28 00:00:00", "start": "2021-03-27T23:00:00.000Z", @@ -35,6 +89,15 @@ "rule": "easter -7", "_weekday": "Sun" }, + { + "date": "2021-04-01 00:00:00", + "start": "2021-03-31T22:00:00.000Z", + "end": "2021-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Thu" + }, { "date": "2021-04-01 00:00:00", "start": "2021-03-31T22:00:00.000Z", @@ -102,7 +165,7 @@ "date": "2021-05-17 00:00:00", "start": "2021-05-16T22:00:00.000Z", "end": "2021-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Mon" @@ -125,6 +188,15 @@ "rule": "easter 50", "_weekday": "Mon" }, + { + "date": "2021-06-07 00:00:00", + "start": "2021-06-06T22:00:00.000Z", + "end": "2021-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Mon" + }, { "date": "2021-06-23 00:00:00", "start": "2021-06-22T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Wed" }, + { + "date": "2021-07-04 00:00:00", + "start": "2021-07-03T22:00:00.000Z", + "end": "2021-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Sun" + }, + { + "date": "2021-07-20 00:00:00", + "start": "2021-07-19T22:00:00.000Z", + "end": "2021-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Tue" + }, + { + "date": "2021-07-29 00:00:00", + "start": "2021-07-28T22:00:00.000Z", + "end": "2021-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Thu" + }, + { + "date": "2021-08-19 00:00:00", + "start": "2021-08-18T22:00:00.000Z", + "end": "2021-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Thu" + }, + { + "date": "2021-11-07 00:00:00", + "start": "2021-11-06T23:00:00.000Z", + "end": "2021-11-07T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2021-11-14 00:00:00", "start": "2021-11-13T23:00:00.000Z", diff --git a/test/fixtures/SJ-2022.json b/test/fixtures/SJ-2022.json index e902243fd..40c4f0628 100644 --- a/test/fixtures/SJ-2022.json +++ b/test/fixtures/SJ-2022.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Sat" }, + { + "date": "2022-01-21 00:00:00", + "start": "2022-01-20T23:00:00.000Z", + "end": "2022-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Fri" + }, + { + "date": "2022-02-06 00:00:00", + "start": "2022-02-05T23:00:00.000Z", + "end": "2022-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Sun" + }, { "date": "2022-02-13 00:00:00", "start": "2022-02-12T23:00:00.000Z", @@ -17,6 +35,24 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2022-02-14 00:00:00", + "start": "2022-02-13T23:00:00.000Z", + "end": "2022-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Mon" + }, + { + "date": "2022-02-21 00:00:00", + "start": "2022-02-20T23:00:00.000Z", + "end": "2022-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Mon" + }, { "date": "2022-02-27 00:00:00", "start": "2022-02-26T23:00:00.000Z", @@ -26,6 +62,33 @@ "rule": "easter -49", "_weekday": "Sun" }, + { + "date": "2022-03-02 00:00:00", + "start": "2022-03-01T23:00:00.000Z", + "end": "2022-03-02T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2022-03-08 00:00:00", + "start": "2022-03-07T23:00:00.000Z", + "end": "2022-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Tue" + }, + { + "date": "2022-04-01 00:00:00", + "start": "2022-03-31T22:00:00.000Z", + "end": "2022-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Fri" + }, { "date": "2022-04-10 00:00:00", "start": "2022-04-09T22:00:00.000Z", @@ -93,7 +156,7 @@ "date": "2022-05-17 00:00:00", "start": "2022-05-16T22:00:00.000Z", "end": "2022-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Tue" @@ -125,6 +188,15 @@ "rule": "easter 50", "_weekday": "Mon" }, + { + "date": "2022-06-07 00:00:00", + "start": "2022-06-06T22:00:00.000Z", + "end": "2022-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Tue" + }, { "date": "2022-06-23 00:00:00", "start": "2022-06-22T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Thu" }, + { + "date": "2022-07-04 00:00:00", + "start": "2022-07-03T22:00:00.000Z", + "end": "2022-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Mon" + }, + { + "date": "2022-07-20 00:00:00", + "start": "2022-07-19T22:00:00.000Z", + "end": "2022-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Wed" + }, + { + "date": "2022-07-29 00:00:00", + "start": "2022-07-28T22:00:00.000Z", + "end": "2022-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Fri" + }, + { + "date": "2022-08-19 00:00:00", + "start": "2022-08-18T22:00:00.000Z", + "end": "2022-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Fri" + }, + { + "date": "2022-11-06 00:00:00", + "start": "2022-11-05T23:00:00.000Z", + "end": "2022-11-06T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2022-11-13 00:00:00", "start": "2022-11-12T23:00:00.000Z", diff --git a/test/fixtures/SJ-2023.json b/test/fixtures/SJ-2023.json index f4d963dc9..71b4d30a4 100644 --- a/test/fixtures/SJ-2023.json +++ b/test/fixtures/SJ-2023.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Sun" }, + { + "date": "2023-01-21 00:00:00", + "start": "2023-01-20T23:00:00.000Z", + "end": "2023-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Sat" + }, + { + "date": "2023-02-06 00:00:00", + "start": "2023-02-05T23:00:00.000Z", + "end": "2023-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Mon" + }, { "date": "2023-02-12 00:00:00", "start": "2023-02-11T23:00:00.000Z", @@ -17,6 +35,15 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2023-02-14 00:00:00", + "start": "2023-02-13T23:00:00.000Z", + "end": "2023-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Tue" + }, { "date": "2023-02-19 00:00:00", "start": "2023-02-18T23:00:00.000Z", @@ -26,6 +53,42 @@ "rule": "easter -49", "_weekday": "Sun" }, + { + "date": "2023-02-21 00:00:00", + "start": "2023-02-20T23:00:00.000Z", + "end": "2023-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Tue" + }, + { + "date": "2023-02-22 00:00:00", + "start": "2023-02-21T23:00:00.000Z", + "end": "2023-02-22T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2023-03-08 00:00:00", + "start": "2023-03-07T23:00:00.000Z", + "end": "2023-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Wed" + }, + { + "date": "2023-04-01 00:00:00", + "start": "2023-03-31T22:00:00.000Z", + "end": "2023-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Sat" + }, { "date": "2023-04-02 00:00:00", "start": "2023-04-01T22:00:00.000Z", @@ -93,7 +156,7 @@ "date": "2023-05-17 00:00:00", "start": "2023-05-16T22:00:00.000Z", "end": "2023-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Wed" @@ -125,6 +188,15 @@ "rule": "easter 50", "_weekday": "Mon" }, + { + "date": "2023-06-07 00:00:00", + "start": "2023-06-06T22:00:00.000Z", + "end": "2023-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Wed" + }, { "date": "2023-06-23 00:00:00", "start": "2023-06-22T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Fri" }, + { + "date": "2023-07-04 00:00:00", + "start": "2023-07-03T22:00:00.000Z", + "end": "2023-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Tue" + }, + { + "date": "2023-07-20 00:00:00", + "start": "2023-07-19T22:00:00.000Z", + "end": "2023-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Thu" + }, + { + "date": "2023-07-29 00:00:00", + "start": "2023-07-28T22:00:00.000Z", + "end": "2023-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Sat" + }, + { + "date": "2023-08-19 00:00:00", + "start": "2023-08-18T22:00:00.000Z", + "end": "2023-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Sat" + }, + { + "date": "2023-11-05 00:00:00", + "start": "2023-11-04T23:00:00.000Z", + "end": "2023-11-05T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2023-11-12 00:00:00", "start": "2023-11-11T23:00:00.000Z", diff --git a/test/fixtures/SJ-2024.json b/test/fixtures/SJ-2024.json index 1c25b70a9..01b1b0f4a 100644 --- a/test/fixtures/SJ-2024.json +++ b/test/fixtures/SJ-2024.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Mon" }, + { + "date": "2024-01-21 00:00:00", + "start": "2024-01-20T23:00:00.000Z", + "end": "2024-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Sun" + }, + { + "date": "2024-02-06 00:00:00", + "start": "2024-02-05T23:00:00.000Z", + "end": "2024-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Tue" + }, { "date": "2024-02-11 00:00:00", "start": "2024-02-10T23:00:00.000Z", @@ -26,6 +44,42 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2024-02-14 00:00:00", + "start": "2024-02-13T23:00:00.000Z", + "end": "2024-02-14T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2024-02-14 00:00:00", + "start": "2024-02-13T23:00:00.000Z", + "end": "2024-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Wed" + }, + { + "date": "2024-02-21 00:00:00", + "start": "2024-02-20T23:00:00.000Z", + "end": "2024-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Wed" + }, + { + "date": "2024-03-08 00:00:00", + "start": "2024-03-07T23:00:00.000Z", + "end": "2024-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Fri" + }, { "date": "2024-03-24 00:00:00", "start": "2024-03-23T23:00:00.000Z", @@ -71,6 +125,15 @@ "rule": "easter 1", "_weekday": "Mon" }, + { + "date": "2024-04-01 00:00:00", + "start": "2024-03-31T22:00:00.000Z", + "end": "2024-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Mon" + }, { "date": "2024-05-01 00:00:00", "start": "2024-04-30T22:00:00.000Z", @@ -102,7 +165,7 @@ "date": "2024-05-17 00:00:00", "start": "2024-05-16T22:00:00.000Z", "end": "2024-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Fri" @@ -125,6 +188,15 @@ "rule": "easter 50", "_weekday": "Mon" }, + { + "date": "2024-06-07 00:00:00", + "start": "2024-06-06T22:00:00.000Z", + "end": "2024-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Fri" + }, { "date": "2024-06-23 00:00:00", "start": "2024-06-22T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Sun" }, + { + "date": "2024-07-04 00:00:00", + "start": "2024-07-03T22:00:00.000Z", + "end": "2024-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Thu" + }, + { + "date": "2024-07-20 00:00:00", + "start": "2024-07-19T22:00:00.000Z", + "end": "2024-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Sat" + }, + { + "date": "2024-07-29 00:00:00", + "start": "2024-07-28T22:00:00.000Z", + "end": "2024-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Mon" + }, + { + "date": "2024-08-19 00:00:00", + "start": "2024-08-18T22:00:00.000Z", + "end": "2024-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Mon" + }, + { + "date": "2024-11-03 00:00:00", + "start": "2024-11-02T23:00:00.000Z", + "end": "2024-11-03T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2024-11-10 00:00:00", "start": "2024-11-09T23:00:00.000Z", diff --git a/test/fixtures/SJ-2025.json b/test/fixtures/SJ-2025.json index c654db801..a42d6b6bd 100644 --- a/test/fixtures/SJ-2025.json +++ b/test/fixtures/SJ-2025.json @@ -8,6 +8,24 @@ "rule": "01-01", "_weekday": "Wed" }, + { + "date": "2025-01-21 00:00:00", + "start": "2025-01-20T23:00:00.000Z", + "end": "2025-01-21T23:00:00.000Z", + "name": "H.K.H. prinsesse Ingrid Alexandra", + "type": "observance", + "rule": "01-21", + "_weekday": "Tue" + }, + { + "date": "2025-02-06 00:00:00", + "start": "2025-02-05T23:00:00.000Z", + "end": "2025-02-06T23:00:00.000Z", + "name": "Samefolkets dag", + "type": "observance", + "rule": "02-06", + "_weekday": "Thu" + }, { "date": "2025-02-09 00:00:00", "start": "2025-02-08T23:00:00.000Z", @@ -17,6 +35,24 @@ "rule": "2nd sunday in February", "_weekday": "Sun" }, + { + "date": "2025-02-14 00:00:00", + "start": "2025-02-13T23:00:00.000Z", + "end": "2025-02-14T23:00:00.000Z", + "name": "Valentinsdag", + "type": "observance", + "rule": "02-14", + "_weekday": "Fri" + }, + { + "date": "2025-02-21 00:00:00", + "start": "2025-02-20T23:00:00.000Z", + "end": "2025-02-21T23:00:00.000Z", + "name": "H.M. kong Harald V", + "type": "public", + "rule": "02-21", + "_weekday": "Fri" + }, { "date": "2025-03-02 00:00:00", "start": "2025-03-01T23:00:00.000Z", @@ -26,6 +62,33 @@ "rule": "easter -49", "_weekday": "Sun" }, + { + "date": "2025-03-05 00:00:00", + "start": "2025-03-04T23:00:00.000Z", + "end": "2025-03-05T23:00:00.000Z", + "name": "Askeonsdag", + "type": "observance", + "rule": "easter -46", + "_weekday": "Wed" + }, + { + "date": "2025-03-08 00:00:00", + "start": "2025-03-07T23:00:00.000Z", + "end": "2025-03-08T23:00:00.000Z", + "name": "Kvinnedagen", + "type": "observance", + "rule": "03-08", + "_weekday": "Sat" + }, + { + "date": "2025-04-01 00:00:00", + "start": "2025-03-31T22:00:00.000Z", + "end": "2025-04-01T22:00:00.000Z", + "name": "Aprilsnarr", + "type": "observance", + "rule": "04-01", + "_weekday": "Tue" + }, { "date": "2025-04-13 00:00:00", "start": "2025-04-12T22:00:00.000Z", @@ -93,7 +156,7 @@ "date": "2025-05-17 00:00:00", "start": "2025-05-16T22:00:00.000Z", "end": "2025-05-17T22:00:00.000Z", - "name": "17. mai", + "name": "Grunnlovsdagen", "type": "public", "rule": "05-17", "_weekday": "Sat" @@ -107,6 +170,15 @@ "rule": "easter 39", "_weekday": "Thu" }, + { + "date": "2025-06-07 00:00:00", + "start": "2025-06-06T22:00:00.000Z", + "end": "2025-06-07T22:00:00.000Z", + "name": "Unionsoppløsningen", + "type": "observance", + "rule": "06-07", + "_weekday": "Sat" + }, { "date": "2025-06-08 00:00:00", "start": "2025-06-07T22:00:00.000Z", @@ -134,6 +206,51 @@ "rule": "06-23", "_weekday": "Mon" }, + { + "date": "2025-07-04 00:00:00", + "start": "2025-07-03T22:00:00.000Z", + "end": "2025-07-04T22:00:00.000Z", + "name": "H.M. dronning Sonja", + "type": "observance", + "rule": "07-04", + "_weekday": "Fri" + }, + { + "date": "2025-07-20 00:00:00", + "start": "2025-07-19T22:00:00.000Z", + "end": "2025-07-20T22:00:00.000Z", + "name": "H.K.H. kronprins Haakon Magnus", + "type": "observance", + "rule": "07-20", + "_weekday": "Sun" + }, + { + "date": "2025-07-29 00:00:00", + "start": "2025-07-28T22:00:00.000Z", + "end": "2025-07-29T22:00:00.000Z", + "name": "Olsok", + "type": "optional", + "rule": "07-29", + "_weekday": "Tue" + }, + { + "date": "2025-08-19 00:00:00", + "start": "2025-08-18T22:00:00.000Z", + "end": "2025-08-19T22:00:00.000Z", + "name": "H.K.H. kronprinsesse Mette-Marit", + "type": "observance", + "rule": "08-19", + "_weekday": "Tue" + }, + { + "date": "2025-11-02 00:00:00", + "start": "2025-11-01T23:00:00.000Z", + "end": "2025-11-02T23:00:00.000Z", + "name": "Allehelgensaften", + "type": "observance", + "rule": "1st sunday in November", + "_weekday": "Sun" + }, { "date": "2025-11-09 00:00:00", "start": "2025-11-08T23:00:00.000Z",