Skip to content

Commit 9813dee

Browse files
authored
United States - Add Truman Day and Lincoln's Birthday (#742)
1 parent 2a78d47 commit 9813dee

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/Nager.Date/HolidayProviders/UnitedStatesHolidayProvider.cs

+21
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,14 @@ protected override IEnumerable<HolidaySpecification> GetHolidaySpecifications(in
137137
ObservedRuleSet = observedRuleSet
138138
},
139139
new HolidaySpecification
140+
{
141+
Date = new DateTime(year, 5, 8),
142+
EnglishName = "Truman Day",
143+
LocalName = "Truman Day",
144+
HolidayTypes = HolidayTypes.Authorities | HolidayTypes.School,
145+
SubdivisionCodes = ["US-MO"]
146+
},
147+
new HolidaySpecification
140148
{
141149
Date = firstMondayInSeptember,
142150
EnglishName = "Labor Day",
@@ -180,10 +188,23 @@ protected override IEnumerable<HolidaySpecification> GetHolidaySpecifications(in
180188

181189
holidaySpecifications.AddIfNotNull(this.JuneteenthNationalIndependenceDay(year, observedRuleSet));
182190
holidaySpecifications.AddIfNotNull(this.IndigenousPeoplesDay(year));
191+
holidaySpecifications.AddIfNotNull(this.LincolnsBirthday(year));
183192

184193
return holidaySpecifications;
185194
}
186195

196+
private HolidaySpecification? LincolnsBirthday(int year)
197+
{
198+
return new HolidaySpecification
199+
{
200+
Date = new DateTime(year, 2, 12),
201+
EnglishName = "Lincoln's Birthday",
202+
LocalName = "Lincoln's Birthday",
203+
HolidayTypes = HolidayTypes.Observance,
204+
SubdivisionCodes = ["US-CA", "US-CT", "US-IL", "US-IN", "US-KY", "US-MI", "US-NY", "US-MO", "US-OH"],
205+
};
206+
}
207+
187208
private HolidaySpecification? JuneteenthNationalIndependenceDay(
188209
int year,
189210
ObservedRuleSet observedRuleSet)

0 commit comments

Comments
 (0)