Skip to content

Commit 6177f5a

Browse files
committed
UKSettlement: Funeral of Queen Elizabeth II
1 parent b6e51e5 commit 6177f5a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/calendars/uk.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ function isholiday(::UKSettlement, dt::Dates.Date)
2929
end
3030

3131
# Fixed date holidays with mm >= 8
32-
if dt == Dates.Date(1999, 12, 31)
32+
if (
33+
dt == Dates.Date(1999, 12, 31)
34+
||
35+
# Funeral of Queen Elizabeth II
36+
dt == Dates.Date(2022, 9, 19)
37+
)
3338
return true
3439
end
3540
else

test/calendar_tests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ test_bdays(:WeekendsOnly, (2019, 8, 23), (2019, 8, 24), 1)
588588
@test isbday(hc_uk, Dates.Date(2022, 5, 30)) == true
589589
@test isbday(hc_uk, Dates.Date(2022, 6, 2)) == false # Spring Bank Holiday
590590
@test isbday(hc_uk, Dates.Date(2022, 8, 29)) == false # Summer Bank Holiday
591+
@test isbday(hc_uk, Dates.Date(2022, 9, 19)) == false # Funeral of Queen Elizabeth II
591592
@test isbday(hc_uk, Dates.Date(2022, 12, 26)) == false # Boxing
592593
@test isbday(hc_uk, Dates.Date(2022, 12, 27)) == false # Christmas
593594

0 commit comments

Comments
 (0)