Skip to content

Commit

Permalink
Merge pull request #402 from havardnyboe/add-flag-days-and-missing-ho…
Browse files Browse the repository at this point in the history
…lidays-norway

Add flag days and missing holidays norway
  • Loading branch information
commenthol authored Feb 27, 2023
2 parents 53bd2f1 + 5387f58 commit ad038d8
Show file tree
Hide file tree
Showing 25 changed files with 2,661 additions and 24 deletions.
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
61 changes: 59 additions & 2 deletions data/countries/NO.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ holidays:
# @source https://no.wikipedia.org/wiki/Arbeidernes_internasjonale_kampdag
# @source https://no.wikipedia.org/wiki/17._mai_(grunnlovsdag)
# @source https://no.wikipedia.org/wiki/P%C3%A5skeaften
# @source https://www.timeanddate.com/holidays/norway/2023
# @attrib https://no.wikipedia.org/wiki/Norges_offisielle_flaggdager
# @attrib https://no.wikipedia.org/wiki/Allehelgensaften
NO:
names:
no: Norge
Expand All @@ -15,14 +18,37 @@ holidays:
days:
01-01:
_name: 01-01
01-21:
name:
no: H.K.H. prinsesse Ingrid Alexandra
en: Birthday of Princess Ingrid Alexandra
type: observance
02-06:
name:
no: Samefolkets dag
en: Day of the Sami people
type: observance
2nd sunday in February:
_name: Mothers Day
type: observance
02-14:
_name: 02-14
type: observance
02-21:
name:
no: H.M. kong Harald V
en: Birthday of King Harald V
easter -49:
name:
no: Fastelavn
en: Carnival
type: observance
easter -46:
_name: easter -46
type: observance
03-08:
_name: 03-08
type: observance
easter -7:
_name: easter -7
type: observance
Expand All @@ -34,26 +60,57 @@ holidays:
_name: easter
easter 1:
_name: easter 1
04-01:
_name: 04-01
type: observance
05-01:
_name: 05-01
05-08:
_name: Liberation Day
type: observance
05-17:
_name: Constitution Day
name:
no: 17. mai
easter 39:
_name: easter 39
easter 49:
_name: easter 49
easter 50:
_name: easter 50
06-07:
name:
no: Unionsoppløsningen
en: Union Dissolution Day
type: observance
06-23:
name:
no: Sankthansaften
en: Midsummar Eve
type: observance
07-04:
name:
no: H.M. dronning Sonja
en: Birthday of Queen Sonja
type: observance
07-20:
name:
no: H.K.H. kronprins Haakon Magnus
en: Birthday of Crown Prince Haakon Magnus
type: observance
07-29:
name:
no: Olsok
en: Olsok
type: optional
08-19:
name:
no: H.K.H. kronprinsesse Mette-Marit
en: Birthday of Crown Princess Mette-Marit
type: observance
1st sunday in November:
name:
no: Allehelgensaften
en: All Saints' Day
type: observance
2nd sunday in November:
_name: Fathers Day
type: observance
Expand Down
4 changes: 4 additions & 0 deletions data/names.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ names:
hu: Valentin nap
lb: Vältesdag
nl: Valentijnsdag
no: Valentinsdag
vi: Lễ tình nhân
03-08:
name:
Expand All @@ -120,6 +121,7 @@ names:
hy: Կանանց տոն
lb: Internationale Fraendag
nl: Internationale Vrouwendag
no: Kvinnedagen
pt: Dia Internacional da Mulher
ro: Ziua Internationala a Femeii
ru: Международный женский день
Expand All @@ -143,6 +145,7 @@ names:
en: April Fools' Day
hu: Bolondok napja
nl: 1 April
no: Aprilsnarr
sq: Dita e Gënjeshtrave
vi: Cá tháng tư
05-01:
Expand Down Expand Up @@ -490,6 +493,7 @@ names:
is: Öskudagur
lb: Äschermëttwoch
nl: Aswoensdag
no: Askeonsdag
pt: Quarta-feira de Cinzas
sw: Jumatano ya Majivu
vi: Thứ tư Lễ Tro
Expand Down
119 changes: 118 additions & 1 deletion test/fixtures/NO-2015.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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"
Expand All @@ -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",
Expand All @@ -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",
Expand Down
Loading

0 comments on commit ad038d8

Please sign in to comment.