Skip to content

Commit

Permalink
Fix Brazilian holidays (São Paulo city holidays) (#2018)
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio authored Jul 11, 2024
2 parents 87951d4 + 830f446 commit 7d70bd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ql/time/calendars/brazil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ namespace QuantLib {
// Labor Day
|| (d == 1 && m == May)
// Revolution Day
|| (d == 9 && m == July)
|| (d == 9 && m == July && y < 2022)
// Independence Day
|| (d == 7 && m == September)
// Nossa Sra. Aparecida Day
Expand All @@ -108,7 +108,7 @@ namespace QuantLib {
// Republic Day
|| (d == 15 && m == November)
// Black Consciousness Day
|| (d == 20 && m == November && y >= 2007)
|| (d == 20 && m == November && y >= 2007 && y != 2022 && y != 2023)
// Christmas Eve
|| (d == 24 && m == December)
// Christmas
Expand Down
4 changes: 2 additions & 2 deletions ql/time/calendars/brazil.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ namespace QuantLib {
<li>Sao Paulo City Day, January 25th (up to 2021 included)</li>
<li>Tiradentes's Day, April 21th</li>
<li>Labour Day, May 1st</li>
<li>Revolution Day, July 9th</li>
<li>Revolution Day, July 9th (up to 2021 included)</li>
<li>Independence Day, September 7th</li>
<li>Nossa Sra. Aparecida Day, October 12th</li>
<li>All Souls Day, November 2nd</li>
<li>Republic Day, November 15th</li>
<li>Black Consciousness Day, November 20th (since 2007)</li>
<li>Black Consciousness Day, November 20th (since 2007, except 2022 and 2023)</li>
<li>Christmas Eve, December 24th</li>
<li>Christmas, December 25th</li>
<li>Passion of Christ</li>
Expand Down

0 comments on commit 7d70bd1

Please sign in to comment.