Skip to content

Commit

Permalink
Adds public holiday in lieu of Christmas 2022 to South Africa calendar (
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio authored Dec 29, 2022
2 parents 58e5aad + bef111c commit bf3b9ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ql/time/calendars/southafrica.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ namespace QuantLib {
|| (d == 22 && m == April && y == 2009)
// one-shot: Election day 2016
|| (d == 3 && m == August && y == 2016)
// one-shot: In lieu of Christmas falling on Sunday in 2022
|| (d == 27 && m == December && y == 2022)
)
return false; // NOLINT(readability-simplify-boolean-expr)
return true;
Expand Down
3 changes: 3 additions & 0 deletions ql/time/calendars/southafrica.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ namespace QuantLib {
<li>Election Days</li>
</ul>
Note that there are some one-off holidays not listed above.
See the implementation for the complete list.
\ingroup calendars
*/
class SouthAfrica : public Calendar {
Expand Down

0 comments on commit bf3b9ee

Please sign in to comment.