本文整理汇总了Python中quantlib.time.calendars.united_kingdom.UnitedKingdom.business_days_between方法的典型用法代码示例。如果您正苦于以下问题:Python UnitedKingdom.business_days_between方法的具体用法?Python UnitedKingdom.business_days_between怎么用?Python UnitedKingdom.business_days_between使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类quantlib.time.calendars.united_kingdom.UnitedKingdom
的用法示例。
在下文中一共展示了UnitedKingdom.business_days_between方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_business_days_between_dates
# 需要导入模块: from quantlib.time.calendars.united_kingdom import UnitedKingdom [as 别名]
# 或者: from quantlib.time.calendars.united_kingdom.UnitedKingdom import business_days_between [as 别名]
def test_business_days_between_dates(self):
ukcal = UnitedKingdom()
date1 = Date(30, May, 2011)
# 30st of May is Spring Bank Holiday
date2 = Date(3, June, 2011)
day_count = ukcal.business_days_between(date1, date2, include_last=True)
self.assertEquals(4, day_count)