Skip to content

Commit 3e6d755

Browse files
authored
Luxembourg - Fix Europe Day (#810)
* Luxembourg - Fix Europe Day
1 parent 5267478 commit 3e6d755

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

src/Nager.Date/HolidayProviders/LuxembourgHolidayProvider.cs

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using Nager.Date.Extensions;
12
using Nager.Date.Models;
23
using Nager.Date.ReligiousProviders;
34
using System;
@@ -42,13 +43,6 @@ protected override IEnumerable<HolidaySpecification> GetHolidaySpecifications(in
4243
HolidayTypes = HolidayTypes.Public
4344
},
4445
new HolidaySpecification
45-
{
46-
Date = new DateTime(year, 5, 9),
47-
EnglishName = "Europe Day",
48-
LocalName = "Europadag",
49-
HolidayTypes = HolidayTypes.Public
50-
},
51-
new HolidaySpecification
5246
{
5347
Date = new DateTime(year, 6, 23),
5448
EnglishName = "Sovereign's birthday",
@@ -89,15 +83,34 @@ protected override IEnumerable<HolidaySpecification> GetHolidaySpecifications(in
8983
this._catholicProvider.WhitMonday("Péngschtméindeg", year)
9084
};
9185

86+
holidaySpecifications.AddIfNotNull(this.EuropeDay(year));
87+
9288
return holidaySpecifications;
9389
}
9490

91+
private HolidaySpecification? EuropeDay(int year)
92+
{
93+
if (year >= 2019)
94+
{
95+
return new HolidaySpecification
96+
{
97+
Date = new DateTime(year, 5, 9),
98+
EnglishName = "Europe Day",
99+
LocalName = "Europadag",
100+
HolidayTypes = HolidayTypes.Public
101+
};
102+
}
103+
104+
return null;
105+
}
106+
95107
/// <inheritdoc/>
96108
public override IEnumerable<string> GetSources()
97109
{
98110
return
99111
[
100-
"https://en.wikipedia.org/wiki/Public_holidays_in_Luxembourg"
112+
"https://en.wikipedia.org/wiki/Public_holidays_in_Luxembourg",
113+
"https://luxembourg.public.lu/en/society-and-culture/festivals-and-traditions/europe-day.html"
101114
];
102115
}
103116
}

0 commit comments

Comments
 (0)