Skip to content

Commit

Permalink
UKSettlement: Funeral of Queen Elizabeth II
Browse files Browse the repository at this point in the history
  • Loading branch information
felipenoris committed Sep 18, 2022
1 parent b6e51e5 commit 6177f5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/calendars/uk.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions test/calendar_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6177f5a

Please sign in to comment.