20#include <ql/time/calendars/italy.hpp>
21#include <ql/errors.hpp>
28 static ext::shared_ptr<Calendar::Impl> settlementImpl(
30 static ext::shared_ptr<Calendar::Impl> exchangeImpl(
34 impl_ = settlementImpl;
40 QL_FAIL(
"unknown market");
59 || (d == 25 && m ==
April)
61 || (d == 1 && m ==
May)
63 || (d == 2 && m ==
June && y >= 2000)
65 || (d == 15 && m ==
August)
75 || (d == 31 && m ==
December && y == 1999))
86 Day em = easterMonday(y);
95 || (d == 1 && m ==
May)
97 || (d == 15 && m ==
August)
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
Italy(Market market=Settlement)
@ Settlement
generic settlement calendar
@ Exchange
Milan stock-exchange calendar.