Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Australian calendar #1374

Merged
merged 1 commit into from
May 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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