Skip to content

Commit

Permalink
Merge pull request #1136.
Browse files Browse the repository at this point in the history
Add new Canadian holiday
  • Loading branch information
lballabio authored Jul 1, 2021
2 parents 454d343 + 4441804 commit 17d4c6e
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 17d4c6e

Please sign in to comment.