From c78ecb073bf5699ac3a110f03ec906353848662b Mon Sep 17 00:00:00 2001 From: liviu-moraru Date: Wed, 18 Oct 2023 16:51:54 +0300 Subject: [PATCH] updated package ro for 2024 year --- v2/ro/ro_holidays.go | 22 ++++++++++++++++++++++ v2/ro/ro_holidays_test.go | 19 +++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/v2/ro/ro_holidays.go b/v2/ro/ro_holidays.go index 591faf4..f38aacf 100644 --- a/v2/ro/ro_holidays.go +++ b/v2/ro/ro_holidays.go @@ -26,6 +26,26 @@ var ( Func: cal.CalcDayOfMonth, } + // Boboteaza represents Epiphany on 6-Jan + Boboteaza = &cal.Holiday{ + Name: "Boboteaza", + Type: cal.ObservancePublic, + Month: time.January, + Day: 6, + StartYear: 2024, + Func: cal.CalcDayOfMonth, + } + + // SfantulIon represents the celebration of Saint John the Baptist + SfantulIon = &cal.Holiday{ + Name: "Sfântul Ion", + Type: cal.ObservancePublic, + Month: 1, + Day: 7, + StartYear: 2024, + Func: cal.CalcDayOfMonth, + } + // ZiuaUniriiPrincipatelorRomane represents the day when, in 1859, the 2 Romanian principalities, Moldavia and Wallachia, united. ZiuaUniriiPrincipatelorRomane = &cal.Holiday{ Name: "Ziua Unirii Principatelor Române", @@ -136,6 +156,8 @@ var ( Holidays = []*cal.Holiday{ AnulNou, AnulNou2, + Boboteaza, + SfantulIon, ZiuaUniriiPrincipatelorRomane, VinereaMare, Pastele, diff --git a/v2/ro/ro_holidays_test.go b/v2/ro/ro_holidays_test.go index 12256b7..dab4a26 100644 --- a/v2/ro/ro_holidays_test.go +++ b/v2/ro/ro_holidays_test.go @@ -30,6 +30,7 @@ func TestHolidays(t *testing.T) { {AnulNou, 2022, d(2022, 1, 1), d(2022, 1, 1)}, {AnulNou, 2022, d(2022, 1, 1), d(2022, 1, 1)}, {AnulNou, 2023, d(2023, 1, 1), d(2023, 1, 1)}, + {AnulNou, 2024, d(2024, 1, 1), d(2024, 1, 1)}, {AnulNou2, 2015, d(2015, 1, 2), d(2015, 1, 2)}, {AnulNou2, 2016, d(2016, 1, 2), d(2016, 1, 2)}, @@ -41,6 +42,11 @@ func TestHolidays(t *testing.T) { {AnulNou2, 2022, d(2022, 1, 2), d(2022, 1, 2)}, {AnulNou2, 2022, d(2022, 1, 2), d(2022, 1, 2)}, {AnulNou2, 2023, d(2023, 1, 2), d(2023, 1, 2)}, + {AnulNou2, 2024, d(2024, 1, 2), d(2024, 1, 2)}, + + {Boboteaza, 2024, d(2024, 1, 6), d(2024, 1, 6)}, + + {SfantulIon, 2024, d(2024, 1, 7), d(2024, 1, 7)}, {ZiuaUniriiPrincipatelorRomane, 2015, d(2015, 1, 24), d(2015, 1, 24)}, {ZiuaUniriiPrincipatelorRomane, 2016, d(2016, 1, 24), d(2016, 1, 24)}, @@ -52,6 +58,7 @@ func TestHolidays(t *testing.T) { {ZiuaUniriiPrincipatelorRomane, 2022, d(2022, 1, 24), d(2022, 1, 24)}, {ZiuaUniriiPrincipatelorRomane, 2022, d(2022, 1, 24), d(2022, 1, 24)}, {ZiuaUniriiPrincipatelorRomane, 2023, d(2023, 1, 24), d(2023, 1, 24)}, + {ZiuaUniriiPrincipatelorRomane, 2024, d(2024, 1, 24), d(2024, 1, 24)}, {VinereaMare, 2015, time.Time{}, time.Time{}}, {VinereaMare, 2016, time.Time{}, time.Time{}}, @@ -62,6 +69,7 @@ func TestHolidays(t *testing.T) { {VinereaMare, 2021, d(2021, 4, 30), d(2021, 4, 30)}, {VinereaMare, 2022, d(2022, 4, 22), d(2022, 4, 22)}, {VinereaMare, 2023, d(2023, 4, 14), d(2023, 4, 14)}, + {VinereaMare, 2024, d(2024, 5, 3), d(2024, 5, 3)}, {Pastele, 2015, d(2015, 4, 12), d(2015, 4, 12)}, {Pastele, 2016, d(2016, 5, 1), d(2016, 5, 1)}, @@ -72,6 +80,7 @@ func TestHolidays(t *testing.T) { {Pastele, 2021, d(2021, 5, 2), d(2021, 5, 2)}, {Pastele, 2022, d(2022, 4, 24), d(2022, 4, 24)}, {Pastele, 2023, d(2023, 4, 16), d(2023, 4, 16)}, + {Pastele, 2024, d(2024, 5, 5), d(2024, 5, 5)}, {ADouaZiDePaste, 2015, d(2015, 4, 13), d(2015, 4, 13)}, {ADouaZiDePaste, 2016, d(2016, 5, 2), d(2016, 5, 2)}, @@ -82,6 +91,7 @@ func TestHolidays(t *testing.T) { {ADouaZiDePaste, 2021, d(2021, 5, 3), d(2021, 5, 3)}, {ADouaZiDePaste, 2022, d(2022, 4, 25), d(2022, 4, 25)}, {ADouaZiDePaste, 2023, d(2023, 4, 17), d(2023, 4, 17)}, + {ADouaZiDePaste, 2024, d(2024, 5, 6), d(2024, 5, 6)}, {ZiuaMuncii, 2015, d(2015, 5, 1), d(2015, 5, 1)}, {ZiuaMuncii, 2016, d(2016, 5, 1), d(2016, 5, 1)}, @@ -92,6 +102,7 @@ func TestHolidays(t *testing.T) { {ZiuaMuncii, 2021, d(2021, 5, 1), d(2021, 5, 1)}, {ZiuaMuncii, 2022, d(2022, 5, 1), d(2022, 5, 1)}, {ZiuaMuncii, 2023, d(2023, 5, 1), d(2023, 5, 1)}, + {ZiuaMuncii, 2024, d(2024, 5, 1), d(2024, 5, 1)}, {ZiuaCopilului, 2015, time.Time{}, time.Time{}}, {ZiuaCopilului, 2016, time.Time{}, time.Time{}}, @@ -102,6 +113,7 @@ func TestHolidays(t *testing.T) { {ZiuaCopilului, 2021, d(2021, 6, 1), d(2021, 6, 1)}, {ZiuaCopilului, 2022, d(2022, 6, 1), d(2022, 6, 1)}, {ZiuaCopilului, 2023, d(2023, 6, 1), d(2023, 6, 1)}, + {ZiuaCopilului, 2024, d(2024, 6, 1), d(2024, 6, 1)}, {Rusalii, 2015, d(2015, 5, 31), d(2015, 5, 31)}, {Rusalii, 2016, d(2016, 6, 19), d(2016, 6, 19)}, @@ -112,6 +124,7 @@ func TestHolidays(t *testing.T) { {Rusalii, 2021, d(2021, 6, 20), d(2021, 6, 20)}, {Rusalii, 2022, d(2022, 6, 12), d(2022, 6, 12)}, {Rusalii, 2023, d(2023, 6, 4), d(2023, 6, 4)}, + {Rusalii, 2024, d(2024, 6, 23), d(2024, 6, 23)}, {LuniDupaRusalii, 2015, d(2015, 6, 1), d(2015, 6, 1)}, {LuniDupaRusalii, 2016, d(2016, 6, 20), d(2016, 6, 20)}, @@ -122,6 +135,7 @@ func TestHolidays(t *testing.T) { {LuniDupaRusalii, 2021, d(2021, 6, 21), d(2021, 6, 21)}, {LuniDupaRusalii, 2022, d(2022, 6, 13), d(2022, 6, 13)}, {LuniDupaRusalii, 2023, d(2023, 6, 5), d(2023, 6, 5)}, + {LuniDupaRusalii, 2024, d(2024, 6, 24), d(2024, 6, 24)}, {AdormireaMaiciiDomnului, 2015, d(2015, 8, 15), d(2015, 8, 15)}, {AdormireaMaiciiDomnului, 2016, d(2016, 8, 15), d(2016, 8, 15)}, @@ -132,6 +146,7 @@ func TestHolidays(t *testing.T) { {AdormireaMaiciiDomnului, 2021, d(2021, 8, 15), d(2021, 8, 15)}, {AdormireaMaiciiDomnului, 2022, d(2022, 8, 15), d(2022, 8, 15)}, {AdormireaMaiciiDomnului, 2023, d(2023, 8, 15), d(2023, 8, 15)}, + {AdormireaMaiciiDomnului, 2024, d(2024, 8, 15), d(2024, 8, 15)}, {SfantulAndrei, 2015, d(2015, 11, 30), d(2015, 11, 30)}, {SfantulAndrei, 2016, d(2016, 11, 30), d(2016, 11, 30)}, @@ -142,6 +157,7 @@ func TestHolidays(t *testing.T) { {SfantulAndrei, 2021, d(2021, 11, 30), d(2021, 11, 30)}, {SfantulAndrei, 2022, d(2022, 11, 30), d(2022, 11, 30)}, {SfantulAndrei, 2023, d(2023, 11, 30), d(2023, 11, 30)}, + {SfantulAndrei, 2024, d(2024, 11, 30), d(2024, 11, 30)}, {ZiuaNationala, 2015, d(2015, 12, 1), d(2015, 12, 1)}, {ZiuaNationala, 2016, d(2016, 12, 1), d(2016, 12, 1)}, @@ -152,6 +168,7 @@ func TestHolidays(t *testing.T) { {ZiuaNationala, 2021, d(2021, 12, 1), d(2021, 12, 1)}, {ZiuaNationala, 2022, d(2022, 12, 1), d(2022, 12, 1)}, {ZiuaNationala, 2023, d(2023, 12, 1), d(2023, 12, 1)}, + {ZiuaNationala, 2024, d(2024, 12, 1), d(2024, 12, 1)}, {Craciunul, 2015, d(2015, 12, 25), d(2015, 12, 25)}, {Craciunul, 2016, d(2016, 12, 25), d(2016, 12, 25)}, @@ -162,6 +179,7 @@ func TestHolidays(t *testing.T) { {Craciunul, 2021, d(2021, 12, 25), d(2021, 12, 25)}, {Craciunul, 2022, d(2022, 12, 25), d(2022, 12, 25)}, {Craciunul, 2023, d(2023, 12, 25), d(2023, 12, 25)}, + {Craciunul, 2024, d(2024, 12, 25), d(2024, 12, 25)}, {Craciunul2, 2015, d(2015, 12, 26), d(2015, 12, 26)}, {Craciunul2, 2016, d(2016, 12, 26), d(2016, 12, 26)}, @@ -172,6 +190,7 @@ func TestHolidays(t *testing.T) { {Craciunul2, 2021, d(2021, 12, 26), d(2021, 12, 26)}, {Craciunul2, 2022, d(2022, 12, 26), d(2022, 12, 26)}, {Craciunul2, 2023, d(2023, 12, 26), d(2023, 12, 26)}, + {Craciunul2, 2024, d(2024, 12, 26), d(2024, 12, 26)}, } for _, test := range tests {