Searched refs:firstweekday (Results 1 - 3 of 3) sorted by relevance
/third_party/python/Lib/test/ |
H A D | test_calendar.py | 507 orig = calendar.firstweekday() 509 self.assertEqual(calendar.firstweekday(), calendar.SUNDAY) 511 self.assertEqual(calendar.firstweekday(), calendar.MONDAY) 613 cal = calendar.Calendar(firstweekday=3) 619 for firstweekday in range(7): 620 cal = calendar.Calendar(firstweekday) 626 cal = calendar.Calendar(firstweekday=3) 631 for firstweekday in range(7): 632 cal = calendar.Calendar(firstweekday) 636 self.assertEqual(days[0][1], firstweekday) 664 firstweekday = calendar.MONDAY global() variable in MondayTestCase 722 firstweekday = calendar.SUNDAY global() variable in SundayTestCase [all...] |
/third_party/python/Lib/ |
H A D | calendar.py | 14 "firstweekday", "isleap", "leapdays", "weekday", "monthrange", 156 def __init__(self, firstweekday=0): 157 self.firstweekday = firstweekday # 0 = Monday, 6 = Sunday 162 def setfirstweekday(self, firstweekday): 163 self._firstweekday = firstweekday 165 firstweekday = property(getfirstweekday, setfirstweekday) variable in Calendar 172 for i in range(self.firstweekday, self.firstweekday + 7): 190 days_before = (day1 - self.firstweekday) 616 firstweekday = c.getfirstweekday global() variable [all...] |
H A D | datetime.py | 2290 firstweekday = (firstday + 6) % 7 # See weekday() above 2291 week1monday = firstday - firstweekday 2292 if firstweekday > THURSDAY:
|
Completed in 6 milliseconds