代码之家  ›  专栏  ›  技术社区  ›  Thomas Browne

G20国家的假期文件[已关闭]

  •  13
  • Thomas Browne  · 技术社区  · 16 年前

    为了正确的金融外汇期权定价,我需要以下确切数字

    2 回复  |  直到 8 年前
        1
  •  20
  •   JamCon    6 年前

    编辑: 更新了来自novapost github仓库的链接。

    https://github.com/peopledoc/workalendar . 我在法国用它,它很有魅力。

    """
    >>> from datetime import date
    >>> from workalendar.europe import France
    >>> cal = France()
    >>> cal.holidays(2013)
    [(datetime.date(2013, 1, 1), 'New year'),
     (datetime.date(2013, 4, 1), 'Easter Monday'),
     (datetime.date(2013, 5, 1), 'Labour Day'),
     (datetime.date(2013, 5, 8), 'Victory in Europe Day'),
     (datetime.date(2013, 5, 9), 'Ascension Thursday'),
     (datetime.date(2013, 5, 20), 'Whit Monday'),
     (datetime.date(2013, 5, 30), 'Corpus Christi'),
     (datetime.date(2013, 7, 14), 'Bastille Day'),
     (datetime.date(2013, 8, 15), 'Assumption of Mary to Heaven'),
     (datetime.date(2013, 11, 1), 'All Saints Day'),
     (datetime.date(2013, 11, 11), 'Armistice Day'),
     (datetime.date(2013, 12, 25), 'Christmas Day')]
    >>> cal.is_working_day(date(2013, 12, 25))  # it's Christmas
    False
    >>> cal.is_working_day(date(2013, 12, 29))  # it's Sunday
    False
    >>> cal.is_working_day(date(2013, 12, 26))
    True
    
        2
  •  2
  •   Eolmar    16 年前

    www.bank-holidays.com似乎更便宜。

    然而,如果你看看英国银行的公共假日,你会看到以下内容( http://www.direct.gov.uk/en/Governmentcitizensandrights/LivingintheUK/DG_073741 )

    所以。不可能预测未来十年的假期。一种可能是估算特定时期的假期数量。