Skip to content

Commit

Permalink
Merge pull request #132 from danilobuerger/friedensfest
Browse files Browse the repository at this point in the history
Added Friedensfest
  • Loading branch information
rickar committed Aug 3, 2024
2 parents d7ae04e + 3b7a669 commit 0851e2e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions v2/de/de_holidays.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ var (
// Fronleichnam represents Corpus Christi on the 60th day after Easter
Fronleichnam = aa.CorpusChristi.Clone(&cal.Holiday{Name: "Fronleichnam", Type: cal.ObservancePublic})

// Friedensfest represents the Augsburger Hohes Friedensfest on 8-Aug
Friedensfest = &cal.Holiday{
Name: "Friedensfest",
Type: cal.ObservancePublic,
Month: time.August,
Day: 8,
Func: cal.CalcDayOfMonth,
StartYear: 1950,
}

// MariaHimmelfahrt represents Assumption of Mary on 15-Aug
MariaHimmelfahrt = aa.AssumptionOfMary.Clone(&cal.Holiday{Name: "Mariä Himmelfahrt", Type: cal.ObservancePublic})

Expand Down
2 changes: 2 additions & 0 deletions v2/de/de_holidays_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ func TestHolidays(t *testing.T) {
{ZweiterWeihnachtsfeiertag, 2020, d(2020, 12, 26), d(2020, 12, 26)},
{ZweiterWeihnachtsfeiertag, 2021, d(2021, 12, 26), d(2021, 12, 26)},
{ZweiterWeihnachtsfeiertag, 2022, d(2022, 12, 26), d(2022, 12, 26)},

{Friedensfest, 2024, d(2024, 8, 8), d(2024, 8, 8)},
}

for _, test := range tests {
Expand Down

0 comments on commit 0851e2e

Please sign in to comment.