コード例 #1
0
WhitMonday = whit_monday(end_date='2002')

QueensDay = Holiday(
    "Queen's Day",
    month=4,
    day=30,
    end_date='2002',
)

LabourDay = european_labour_day()

ChristmasEve = christmas_eve(days_of_week=WEEKDAYS)
Christmas = christmas()
BoxingDay = boxing_day()

NewYearsEveBefore2002 = new_years_eve(end_date='2002')
NewYearsEveInOrAfter2002 = new_years_eve(
    start_date='2002',
    days_of_week=WEEKDAYS,
)


def holidays():
    return [
        NewYearsDay,
        GoodFriday,
        EasterMonday,
        AscensionDay,
        WhitMonday,
        QueensDay,
        LabourDay,
コード例 #2
0
ファイル: prague.py プロジェクト: shasafoster/OTC
    'Struggle for Freedom and Democracy Day',
    month=11,
    day=17,
)

ChristmasEve = christmas_eve()

ChristmasDay = christmas()

SecondDayOfChristmas = Holiday(
    'Second Day of Christmas',
    month=12,
    day=26,
)

ExchangeHoliday = new_years_eve()


def holidays():

    return [
        NewYearsDay,
        GoodFriday,
        EasterMonday,
        LabourDay,
        LiberationDay,
        SaintsCyrilAndMethodiusDay,
        JanHusDay,
        CzechStatehoodDay,
        IndependenceDay,
        StruggleForFreedomAndDemocracyDay,
コード例 #3
0
NationalHoliday = Holiday('National Holiday', month=10, day=26)

AllSaintsDay = all_saints_day(end_date='2019')

ImmaculateConception = immaculate_conception(end_date='2019')

ChristmasEve = christmas_eve()
Christmas = christmas()

SaintStephensDay = Holiday("Saint Stephen's Day", month=12, day=26)

# Prior to 2016, when New Year's Eve fell on the weekend, it was observed
# on the preceding Friday. In 2016 and after, it is not made up.
NewYearsEveThrough2015 = new_years_eve(
    observance=previous_friday,
    end_date='2016',
)
NewYearsEve2016Onwards = new_years_eve(start_date='2016')


def holidays():
    return [
        NewYearsDay,
        Epiphany,
        GoodFriday,
        EasterMonday,
        AscensionDay,
        WhitMonday,
        CorpusChristi,
        LabourDay,
        AssumptionDay,
コード例 #4
0
MidsummerEve = midsummer_eve()

# This falls on the Friday between October 30th and November 5th.
AllSaintsEve = Holiday(
    "All Saints' Eve",
    month=10,
    day=30,
    offset=DateOffset(weekday=FR(1)),
)

ChristmasEve = christmas_eve()
Christmas = christmas()
BoxingDay = boxing_day()

NewYearsEve = new_years_eve()


def holidays():
    return [
        NewYearsDay,
        Epiphany,
        GoodFriday,
        EasterMonday,
        LabourDay,
        AscensionDay,
        WhitMonday,
        NationalDay,
        MidsummerEve,
        ChristmasEve,
        Christmas,
コード例 #5
0
ファイル: lima.py プロジェクト: shasafoster/OTC
SaintPeterAndSaintPaulDay = saint_peter_and_saint_paul_day()

IndependenceDay1 = Holiday('Independence Day', month=7, day=28)
IndependenceDay2 = Holiday('Independence Day', month=7, day=29)

SantaRosa = Holiday('Santa Rosa', month=8, day=30)

BattleOfAngamos = Holiday('Battle of Angamos', month=10, day=8)

AllSaintsDay = all_saints_day()

ImmaculateConception = immaculate_conception()

Christmas = christmas()

NewYearsEve = new_years_eve(end_date='2008')


def holidays():
    return [
        NewYearsDay,
        MaundyThursday,
        GoodFriday,
        LabourDay,
        SaintPeterAndSaintPaulDay,
        IndependenceDay1,
        IndependenceDay2,
        SantaRosa,
        BattleOfAngamos,
        AllSaintsDay,
        ImmaculateConception,
コード例 #6
0
    'Day of Russia',
    month=6,
    day=12,
    observance=weekend_to_monday,
)

UnityDay = Holiday(
    'Unity Day',
    month=11,
    day=4,
    observance=weekend_to_monday,
    start_date='2005',
)

NewYearsEve = new_years_eve(
    observance=new_years_eve_observance,
    days_of_week=WEEKDAYS,
)


def holidays():
    return [
        NewYearsDay,
        NewYearsHoliday,
        NewYearsHoliday2,
        NewYearsHoliday3,
        NewYearsHoliday4,
        NewYearsHoliday5,
        OrthodoxChristmas,
        DefenderOfTheFatherlandDay,
        WomensDay,
        LabourDay,