Python dateutil.rrule.SU Examples
The following are 7
code examples of dateutil.rrule.SU().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
dateutil.rrule
, or try the search function
.
Example #1
Source File: test_imports.py From plugin.video.emby with GNU General Public License v3.0 | 7 votes |
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)
Example #2
Source File: test_imports.py From bazarr with GNU General Public License v3.0 | 6 votes |
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)
Example #3
Source File: test_imports.py From plugin.video.emby with GNU General Public License v3.0 | 5 votes |
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)
Example #4
Source File: test_imports.py From bazarr with GNU General Public License v3.0 | 5 votes |
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)
Example #5
Source File: test_business_calendar.py From py-business-calendar with MIT License | 5 votes |
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)
Example #6
Source File: test_business_calendar.py From py-business-calendar with MIT License | 5 votes |
def setup_class(cls): print('\n\nTesting crazy week, Mo,Tu,Fr,SU, WITH holidays, 2010-2013') warnings.filterwarnings('ignore', module='business_calendar')
Example #7
Source File: test_business_calendar.py From py-business-calendar with MIT License | 5 votes |
def __init__(self): BaseCalendarTest.__init__(self) self.holidays = [parse(x) for x in global_holidays.split('\n')] self.cal = Calendar(workdays=[0,1,4,6], holidays=self.holidays) rr = rruleset() rr.rrule(rrule(DAILY, byweekday=(MO,TU,FR,SU), dtstart=datetime.datetime(2010,1,1))) for h in self.holidays: rr.exdate(h) self.rr = rr self.dates = rr.between(datetime.datetime(2010,1,1), datetime.datetime(2013,12,31), inc=True)