Skip to content

Commit

Permalink
Add new Canadian holiday
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Jul 1, 2021
1 parent abac3c4 commit 4441804
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ql/time/calendars/canada.cpp
Expand Up @@ -62,6 +62,9 @@ namespace QuantLib {
|| (d <= 7 && w == Monday && m == August)
// first Monday of September (Labor Day)
|| (d <= 7 && w == Monday && m == September)
// September 30th, possibly moved to Monday
// (National Day for Truth and Reconciliation, since 2021)
|| (((d == 30 && m == September) || (d <= 2 && m == October && w == Monday)) && y >= 2021)
// second Monday of October (Thanksgiving Day)
|| (d > 7 && d <= 14 && w == Monday && m == October)
// November 11th (possibly moved to Monday)
Expand Down
1 change: 1 addition & 0 deletions ql/time/calendars/canada.hpp
Expand Up @@ -42,6 +42,7 @@ namespace QuantLib {
<li>Canada Day, July 1st (possibly moved to Monday)</li>
<li>Provincial Holiday, first Monday of August</li>
<li>Labour Day, first Monday of September</li>
<li>National Day for Truth and Reconciliation, September 30th (possibly moved to Monday)</li>
<li>Thanksgiving Day, second Monday of October</li>
<li>Remembrance Day, November 11th (possibly moved to Monday)</li>
<li>Christmas, December 25th (possibly moved to Monday or Tuesday)</li>
Expand Down

0 comments on commit 4441804

Please sign in to comment.