Skip to content

Commit

Permalink
Add President Carter's funeral on 2025-Jan-09
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Dec 30, 2024
1 parent e5c4014 commit c3abd9f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions ql/time/calendars/unitedstates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Copyright (C) 2017 Peter Caspers
Copyright (C) 2017 Oleg Kulkov
Copyright (C) 2023 Skandinaviska Enskilda Banken AB (publ)
Copyright (C) 2024 Dirk Eddelbuettel
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
Expand Down Expand Up @@ -219,8 +220,10 @@ namespace QuantLib {
return false;

// Special closings
if (// President Bush's Funeral
(y == 2018 && m == December && d == 5)
if (// President Carter's Funeral
(y == 2025 && m == January && d == 9)
// President Bush's Funeral
|| (y == 2018 && m == December && d == 5)
// Hurricane Sandy
|| (y == 2012 && m == October && (d == 29 || d == 30))
// President Ford's funeral
Expand Down Expand Up @@ -314,8 +317,10 @@ namespace QuantLib {
return false;

// Special closings
if (// President Bush's Funeral
(y == 2018 && m == December && d == 5)
if (// President Carter's Funeral
(y == 2025 && m == January && d == 9)
// President Bush's Funeral
|| (y == 2018 && m == December && d == 5)
// Hurricane Sandy
|| (y == 2012 && m == October && d == 30)
// President Reagan's funeral
Expand Down

0 comments on commit c3abd9f

Please sign in to comment.