Skip to content

Commit

Permalink
apply substitute holiday to southkorea calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
nistick21 committed Jun 20, 2023
1 parent 5f5e0fe commit 6a39e19
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ql/time/calendars/southkorea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ namespace QuantLib {
|| ((d == 4 || d == 5 || d == 6) && m == February && y == 2019)
|| ((d >= 24 && d <= 27) && m == January && y == 2020)
|| ((d == 11 || d == 12 || d == 13) && m == February && y == 2021)
|| (((d == 31 && m == January) || ((d == 1|| d == 2)
|| (((d == 31 && m == January) || ((d == 1|| d == 2)
&& m == February)) && y == 2022)
|| ((d == 23 || d == 24) && m == January && y == 2023)
|| ((d >= 9 && d <= 12) && m == February && y == 2024)
Expand Down Expand Up @@ -271,9 +271,12 @@ namespace QuantLib {
|| ((d == 3 || d == 4 || d == 5) && m == October && y == 2047)
|| ((d == 21 || d == 22 || d == 23) && m == September && y == 2048)
|| ((d >= 10 && d <= 13) && m == September && y == 2049)
|| ((((d == 29|| d == 30) && m == September) || (d == 1 && m == October)) && y == 2050)
|| ((((d == 29|| d == 30) && m == September) || (d == 1 && m == October)) && y == 2051)
|| ((((d == 29|| d == 30) && m == September) || (d == 1 && m == October)) && y == 2052)
|| ((((d == 29|| d == 30) && m == September)
|| (d == 1 && m == October)) && y == 2050)
|| ((((d == 29|| d == 30) && m == September)
|| (d == 1 && m == October)) && y == 2051)
|| ((((d == 29|| d == 30) && m == September)
|| (d == 1 && m == October)) && y == 2052)

// Hangul Proclamation of Korea
|| (d == 9 && m == October && y >= 2013)
Expand Down

0 comments on commit 6a39e19

Please sign in to comment.