Skip to content

Commit

Permalink
Australia - Add Monarch Birthday for Western Australia (#686)
Browse files Browse the repository at this point in the history
* Australia - Add Monarch Birthday for WA

* Australia - Add Monarch Birthday for Western Australia
  • Loading branch information
tinohager authored Sep 25, 2024
1 parent a96d816 commit 9addb90
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Nager.Date/HolidayProviders/AustraliaHolidayProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ private HolidaySpecification[] MonarchBirthday(int year)
}

var secondMondayInJune = DateHelper.FindDay(year, Month.June, DayOfWeek.Monday, Occurrence.Second);
var fourthMondayInSeptember = DateHelper.FindDay(year, Month.September, DayOfWeek.Monday, Occurrence.Fourth);
var firstMondayInOctober = DateHelper.FindDay(year, Month.October, DayOfWeek.Monday, Occurrence.First);


return
[
Expand All @@ -280,6 +282,14 @@ private HolidaySpecification[] MonarchBirthday(int year)
SubdivisionCodes = ["AU-ACT", "AU-NSW", "AU-NT", "AU-SA", "AU-TAS", "AU-VIC"]
},
new HolidaySpecification
{
Date = fourthMondayInSeptember,
EnglishName = name,
LocalName = name,
HolidayTypes = HolidayTypes.Public,
SubdivisionCodes = ["AU-WA"]
},
new HolidaySpecification
{
Date = firstMondayInOctober,
EnglishName = name,
Expand Down

0 comments on commit 9addb90

Please sign in to comment.