Skip to content

Commit

Permalink
United States - Add Truman Day and Lincoln's Birthday (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager authored Jan 8, 2025
1 parent 2a78d47 commit 9813dee
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Nager.Date/HolidayProviders/UnitedStatesHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ protected override IEnumerable<HolidaySpecification> GetHolidaySpecifications(in
ObservedRuleSet = observedRuleSet
},
new HolidaySpecification
{
Date = new DateTime(year, 5, 8),
EnglishName = "Truman Day",
LocalName = "Truman Day",
HolidayTypes = HolidayTypes.Authorities | HolidayTypes.School,
SubdivisionCodes = ["US-MO"]
},
new HolidaySpecification
{
Date = firstMondayInSeptember,
EnglishName = "Labor Day",
Expand Down Expand Up @@ -180,10 +188,23 @@ protected override IEnumerable<HolidaySpecification> GetHolidaySpecifications(in

holidaySpecifications.AddIfNotNull(this.JuneteenthNationalIndependenceDay(year, observedRuleSet));
holidaySpecifications.AddIfNotNull(this.IndigenousPeoplesDay(year));
holidaySpecifications.AddIfNotNull(this.LincolnsBirthday(year));

return holidaySpecifications;
}

private HolidaySpecification? LincolnsBirthday(int year)
{
return new HolidaySpecification
{
Date = new DateTime(year, 2, 12),
EnglishName = "Lincoln's Birthday",
LocalName = "Lincoln's Birthday",
HolidayTypes = HolidayTypes.Observance,
SubdivisionCodes = ["US-CA", "US-CT", "US-IL", "US-IN", "US-KY", "US-MI", "US-NY", "US-MO", "US-OH"],
};
}

private HolidaySpecification? JuneteenthNationalIndependenceDay(
int year,
ObservedRuleSet observedRuleSet)
Expand Down

0 comments on commit 9813dee

Please sign in to comment.