From e5184d92a016575f85d1269b2af863c37cf7c294 Mon Sep 17 00:00:00 2001 From: Josh Hayes Date: Thu, 29 Dec 2022 10:32:30 +0200 Subject: [PATCH] Adds holiday in lieu of Christmas on Sunday --- ql/time/calendars/southafrica.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ql/time/calendars/southafrica.cpp b/ql/time/calendars/southafrica.cpp index 4486a6377a6..c3764f7a261 100644 --- a/ql/time/calendars/southafrica.cpp +++ b/ql/time/calendars/southafrica.cpp @@ -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;