From 6177f5abea605916a52ea91923eaa1d8b45e1186 Mon Sep 17 00:00:00 2001 From: Felipe Noronha Date: Sun, 18 Sep 2022 16:35:45 -0300 Subject: [PATCH] UKSettlement: Funeral of Queen Elizabeth II --- src/calendars/uk.jl | 7 ++++++- test/calendar_tests.jl | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/calendars/uk.jl b/src/calendars/uk.jl index c4841b1..8295a78 100644 --- a/src/calendars/uk.jl +++ b/src/calendars/uk.jl @@ -29,7 +29,12 @@ function isholiday(::UKSettlement, dt::Dates.Date) end # Fixed date holidays with mm >= 8 - if dt == Dates.Date(1999, 12, 31) + if ( + dt == Dates.Date(1999, 12, 31) + || + # Funeral of Queen Elizabeth II + dt == Dates.Date(2022, 9, 19) + ) return true end else diff --git a/test/calendar_tests.jl b/test/calendar_tests.jl index af1c448..3e9094a 100644 --- a/test/calendar_tests.jl +++ b/test/calendar_tests.jl @@ -588,6 +588,7 @@ test_bdays(:WeekendsOnly, (2019, 8, 23), (2019, 8, 24), 1) @test isbday(hc_uk, Dates.Date(2022, 5, 30)) == true @test isbday(hc_uk, Dates.Date(2022, 6, 2)) == false # Spring Bank Holiday @test isbday(hc_uk, Dates.Date(2022, 8, 29)) == false # Summer Bank Holiday +@test isbday(hc_uk, Dates.Date(2022, 9, 19)) == false # Funeral of Queen Elizabeth II @test isbday(hc_uk, Dates.Date(2022, 12, 26)) == false # Boxing @test isbday(hc_uk, Dates.Date(2022, 12, 27)) == false # Christmas