|
| 1 | +using Nager.Date.Extensions; |
1 | 2 | using Nager.Date.Models; |
2 | 3 | using Nager.Date.ReligiousProviders; |
3 | 4 | using System; |
@@ -42,13 +43,6 @@ protected override IEnumerable<HolidaySpecification> GetHolidaySpecifications(in |
42 | 43 | HolidayTypes = HolidayTypes.Public |
43 | 44 | }, |
44 | 45 | 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 |
52 | 46 | { |
53 | 47 | Date = new DateTime(year, 6, 23), |
54 | 48 | EnglishName = "Sovereign's birthday", |
@@ -89,15 +83,34 @@ protected override IEnumerable<HolidaySpecification> GetHolidaySpecifications(in |
89 | 83 | this._catholicProvider.WhitMonday("Péngschtméindeg", year) |
90 | 84 | }; |
91 | 85 |
|
| 86 | + holidaySpecifications.AddIfNotNull(this.EuropeDay(year)); |
| 87 | + |
92 | 88 | return holidaySpecifications; |
93 | 89 | } |
94 | 90 |
|
| 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 | + |
95 | 107 | /// <inheritdoc/> |
96 | 108 | public override IEnumerable<string> GetSources() |
97 | 109 | { |
98 | 110 | return |
99 | 111 | [ |
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" |
101 | 114 | ]; |
102 | 115 | } |
103 | 116 | } |
|
0 commit comments