当前位置: 首页>>代码示例>>Python>>正文


Python rrule.SU属性代码示例

本文整理汇总了Python中dateutil.rrule.SU属性的典型用法代码示例。如果您正苦于以下问题:Python rrule.SU属性的具体用法?Python rrule.SU怎么用?Python rrule.SU使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在dateutil.rrule的用法示例。


在下文中一共展示了rrule.SU属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: testRRuleAll

# 需要导入模块: from dateutil import rrule [as 别名]
# 或者: from dateutil.rrule import SU [as 别名]
def testRRuleAll(self):
        from dateutil.rrule import rrule
        from dateutil.rrule import rruleset
        from dateutil.rrule import rrulestr
        from dateutil.rrule import YEARLY, MONTHLY, WEEKLY, DAILY
        from dateutil.rrule import HOURLY, MINUTELY, SECONDLY
        from dateutil.rrule import MO, TU, WE, TH, FR, SA, SU

        rr_all = (rrule, rruleset, rrulestr,
                  YEARLY, MONTHLY, WEEKLY, DAILY,
                  HOURLY, MINUTELY, SECONDLY,
                  MO, TU, WE, TH, FR, SA, SU)

        for var in rr_all:
            self.assertIsNot(var, None)

        # In the public interface but not in all
        from dateutil.rrule import weekday
        self.assertIsNot(weekday, None) 
开发者ID:MediaBrowser,项目名称:plugin.video.emby,代码行数:21,代码来源:test_imports.py

示例2: testRelativeDeltaAll

# 需要导入模块: from dateutil import rrule [as 别名]
# 或者: from dateutil.rrule import SU [as 别名]
def testRelativeDeltaAll(self):
        from dateutil.relativedelta import relativedelta
        from dateutil.relativedelta import MO, TU, WE, TH, FR, SA, SU

        for var in (relativedelta, MO, TU, WE, TH, FR, SA, SU):
            self.assertIsNot(var, None)

        # In the public interface but not in all
        from dateutil.relativedelta import weekday
        self.assertIsNot(weekday, None) 
开发者ID:MediaBrowser,项目名称:plugin.video.emby,代码行数:12,代码来源:test_imports.py

示例3: __init__

# 需要导入模块: from dateutil import rrule [as 别名]
# 或者: from dateutil.rrule import SU [as 别名]
def __init__(self):
        BaseCalendarTest.__init__(self)
        self.cal = Calendar(workdays=[0,1,4,6])
        rr = rruleset()
        rr.rrule(rrule(DAILY,
                       byweekday=(MO,TU,FR,SU),
                       dtstart=datetime.datetime(2010,1,1)))
        self.rr = rr
        self.dates = rr.between(datetime.datetime(2010,1,1),
                                datetime.datetime(2013,12,31),
                                inc=True) 
开发者ID:botant,项目名称:py-business-calendar,代码行数:13,代码来源:test_business_calendar.py

示例4: setup_class

# 需要导入模块: from dateutil import rrule [as 别名]
# 或者: from dateutil.rrule import SU [as 别名]
def setup_class(cls):
        print('\n\nTesting crazy week, Mo,Tu,Fr,SU, WITH holidays, 2010-2013')
        warnings.filterwarnings('ignore', module='business_calendar') 
开发者ID:botant,项目名称:py-business-calendar,代码行数:5,代码来源:test_business_calendar.py


注:本文中的dateutil.rrule.SU属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。