Skip to content

Commit

Permalink
Poland - Add Christmas Eve from 2025 (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager authored Jan 8, 2025
1 parent c0e6fc4 commit d4ccc1d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Nager.Date/HolidayProviders/PolandHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,27 @@ protected override IEnumerable<HolidaySpecification> GetHolidaySpecifications(in
};

holidaySpecifications.AddIfNotNull(this.IndependenceDay(year));
holidaySpecifications.AddIfNotNull(this.ChristmasEve(year));

return holidaySpecifications;
}

private HolidaySpecification? ChristmasEve(int year)
{
if (year >= 2025)
{
return new HolidaySpecification
{
Date = new DateTime(year, 12, 24),
EnglishName = "Christmas Eve",
LocalName = "Wolna Wigilia",
HolidayTypes = HolidayTypes.Public
};
}

return null;
}

private HolidaySpecification? IndependenceDay(int year)
{
if (year == 2018)
Expand Down

0 comments on commit d4ccc1d

Please sign in to comment.