Skip to content

Commit

Permalink
Merge pull request #1374.
Browse files Browse the repository at this point in the history
Update Australian calendar
  • Loading branch information
lballabio authored May 9, 2022
2 parents 1341223 + a2d6562 commit 6d46a15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ql/time/calendars/australia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ namespace QuantLib {
Day em = easterMonday(y);
if (isWeekend(w)
// New Year's Day (possibly moved to Monday)
|| (d == 1 && m == January)
|| ((d == 1 || d == 2) && m == January)
// Australia Day, January 26th (possibly moved to Monday)
|| ((d == 26 || ((d == 27 || d == 28) && w == Monday)) &&
m == January)
// Good Friday
|| (dd == em-3)
// Easter Monday
|| (dd == em)
// ANZAC Day, April 25th (possibly moved to Monday)
|| ((d == 25 || (d == 26 && w == Monday)) && m == April)
// ANZAC Day, April 25th
|| (d == 25 && m == April)
// Queen's Birthday, second Monday in June
|| ((d > 7 && d <= 14) && w == Monday && m == June)
// Bank Holiday, first Monday in August
Expand Down

0 comments on commit 6d46a15

Please sign in to comment.