Skip to content

Commit 1b31496

Browse files
authored
Merge pull request #112 from arnested/store-bededag-is-no-more
Danish "Store bededag" has been abolished from 2024
2 parents 411491b + c94232f commit 1b31496

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

v2/dk/dk_holidays.go

+6-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ var (
2525

2626
// StoreBededag represents General Prayer Day on the fourth Friday after Easter
2727
StoreBededag = &cal.Holiday{
28-
Name: "Store bededag",
29-
Type: cal.ObservancePublic,
30-
Offset: 26,
31-
Func: cal.CalcEasterOffset,
28+
Name: "Store bededag",
29+
Type: cal.ObservancePublic,
30+
Offset: 26,
31+
Func: cal.CalcEasterOffset,
32+
StartYear: 1686,
33+
EndYear: 2023,
3234
}
3335

3436
// KristiHimmelfartsdag represents Ascension Day on the 39th day after Easter

v2/dk/dk_holidays_test.go

+5
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ func TestHolidays(t *testing.T) {
5656
{AndenPaaskedag, 2021, d(2021, 4, 5), d(2021, 4, 5)},
5757
{AndenPaaskedag, 2022, d(2022, 4, 18), d(2022, 4, 18)},
5858

59+
{StoreBededag, 1685, time.Time{}, time.Time{}},
60+
{StoreBededag, 1686, d(1686, 5, 10), d(1686, 5, 10)},
5961
{StoreBededag, 2015, d(2015, 5, 1), d(2015, 5, 1)},
6062
{StoreBededag, 2016, d(2016, 4, 22), d(2016, 4, 22)},
6163
{StoreBededag, 2017, d(2017, 5, 12), d(2017, 5, 12)},
@@ -64,6 +66,9 @@ func TestHolidays(t *testing.T) {
6466
{StoreBededag, 2020, d(2020, 5, 8), d(2020, 5, 8)},
6567
{StoreBededag, 2021, d(2021, 4, 30), d(2021, 4, 30)},
6668
{StoreBededag, 2022, d(2022, 5, 13), d(2022, 5, 13)},
69+
{StoreBededag, 2023, d(2023, 5, 5), d(2023, 5, 5)},
70+
{StoreBededag, 2024, time.Time{}, time.Time{}},
71+
{StoreBededag, 2025, time.Time{}, time.Time{}},
6772

6873
{KristiHimmelfartsdag, 2015, d(2015, 5, 14), d(2015, 5, 14)},
6974
{KristiHimmelfartsdag, 2016, d(2016, 5, 5), d(2016, 5, 5)},

0 commit comments

Comments
 (0)