34 (
d <= 7 && w ==
Monday && m ==
May &&
y != 1995 &&
y != 2020)
35 || (
d == 8 && m ==
May && (
y == 1995 ||
y == 2020))
39 || (
d >= 25 && w ==
Monday && m ==
May &&
y != 2002 &&
y != 2012 &&
y != 2022)
40 || ((
d == 3 ||
d == 4) && m ==
June &&
y == 2002)
41 || ((
d == 4 ||
d == 5) && m ==
June &&
y == 2012)
42 || ((
d == 2 ||
d == 3) && m ==
June &&
y == 2022)
46 || (
d == 29 && m ==
April &&
y == 2011)
50 || (
d == 8 && m ==
May &&
y == 2023)
59 static ext::shared_ptr<Calendar::Impl> settlementImpl(
61 static ext::shared_ptr<Calendar::Impl> exchangeImpl(
63 static ext::shared_ptr<Calendar::Impl> metalsImpl(
67 impl_ = settlementImpl;
88 || ((
d == 1 || ((
d == 2 ||
d == 3) && w ==
Monday)) &&
94 || isBankHoliday(
d, w, m,
y)
113 Day em = easterMonday(
y);
116 || ((
d == 1 || ((
d == 2 ||
d == 3) && w ==
Monday)) &&
122 || isBankHoliday(
d, w, m,
y)
141 Day em = easterMonday(
y);
144 || ((
d == 1 || ((
d == 2 ||
d == 3) && w ==
Monday)) &&
150 || isBankHoliday(
d, w, m,
y)
static Day easterMonday(Year)
expressed relative to first day of year
bool isWeekend(Weekday) const override
bool isWeekend(Weekday w) const
ext::shared_ptr< Impl > impl_
Day dayOfYear() const
One-based (Jan 1st = 1)
bool isBusinessDay(const Date &) const override
bool isBusinessDay(const Date &) const override
UnitedKingdom(Market market=Settlement)
@ Settlement
generic settlement calendar
@ Exchange
London stock-exchange calendar.
Classes and functions for error handling.
#define QL_FAIL(message)
throw an error (possibly with file and line information)