From 262c0bc99977d5668cb98ac931031d4059abd651 Mon Sep 17 00:00:00 2001 From: Felipe Noronha Date: Thu, 9 Nov 2023 23:07:48 -0300 Subject: [PATCH] remove Veterans Holiday 2023 from USGovernmentBond calendar --- src/calendars/us.jl | 2 +- test/calendar_tests.jl | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/calendars/us.jl b/src/calendars/us.jl index 404ff8c..fbff62f 100644 --- a/src/calendars/us.jl +++ b/src/calendars/us.jl @@ -220,7 +220,7 @@ function isholiday(::USGovernmentBond , dt::Dates.Date) adjustweekendholidayUS(findweekday(Dates.Monday, yy, 10, 2, true)) == dt || # Veterans Day - adjustweekendholidayUS(Dates.Date(yy, 11, 11)) == dt + (yy != 2023 && adjustweekendholidayUS(Dates.Date(yy, 11, 11)) == dt) || # Thanksgiving Day adjustweekendholidayUS(findweekday(Dates.Thursday, yy, 11, 4, true)) == dt diff --git a/test/calendar_tests.jl b/test/calendar_tests.jl index 085f960..f3919a6 100644 --- a/test/calendar_tests.jl +++ b/test/calendar_tests.jl @@ -469,7 +469,6 @@ test_bdays(:WeekendsOnly, (2019, 8, 23), (2019, 8, 24), 1) "2023-07-04", # U.S. Independence Day "2023-09-04", # Labor Day "2023-10-09", # Columbus Day - "2023-11-10", # Veterans Day "2023-11-23", # Thanksgiving Day "2023-12-25", # Christmas Day ])