/external/python/cpython2/Lib/test/ |
D | test_datetime.py | 13 from datetime import MINYEAR, MAXYEAR 38 self.assertEqual(datetime.MAXYEAR, 9999) 621 for year in xrange(MINYEAR, MAXYEAR+1, 7): 675 self.theclass(MAXYEAR, 1, 1) # no exception 677 self.assertRaises(ValueError, self.theclass, MAXYEAR+1, 1, 1) 1301 dt1 = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999998) 1321 self.theclass(MAXYEAR, 1, 1) # no exception 1323 self.assertRaises(ValueError, self.theclass, MAXYEAR+1, 1, 1) 2466 t2 = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999999, 2552 t = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999999, [all …]
|
D | test_calendar.py | 292 list(calendar.Calendar().itermonthdates(datetime.MAXYEAR, 12))
|
/external/python/cpython2/Doc/library/ |
D | datetime.rst | 54 .. data:: MAXYEAR 57 :const:`MAXYEAR` is ``9999``. 355 * ``MINYEAR <= year <= MAXYEAR`` 397 The latest representable date, ``date(MAXYEAR, 12, 31)``. 410 Between :const:`MINYEAR` and :const:`MAXYEAR` inclusive. 447 :const:`MINYEAR` or larger than :const:`MAXYEAR`. 640 * ``MINYEAR <= year <= MAXYEAR`` 751 The latest representable :class:`.datetime`, ``datetime(MAXYEAR, 12, 31, 23, 59, 765 Between :const:`MINYEAR` and :const:`MAXYEAR` inclusive. 825 :const:`MAXYEAR`. Note that no time zone adjustments are done even if the [all …]
|
/external/python/cpython3/Doc/library/ |
D | datetime.rst | 59 .. data:: MAXYEAR 62 :const:`MAXYEAR` is ``9999``. 405 * ``MINYEAR <= year <= MAXYEAR`` 469 The latest representable date, ``date(MAXYEAR, 12, 31)``. 482 Between :const:`MINYEAR` and :const:`MAXYEAR` inclusive. 519 :const:`MINYEAR` or larger than :const:`MAXYEAR`. 711 * ``MINYEAR <= year <= MAXYEAR``, 805 :const:`MINYEAR` and :const:`MAXYEAR` inclusive. 876 The latest representable :class:`.datetime`, ``datetime(MAXYEAR, 12, 31, 23, 59, 890 Between :const:`MINYEAR` and :const:`MAXYEAR` inclusive. [all …]
|
/external/python/dateutil/dateutil/ |
D | rrule.py | 894 if year > datetime.MAXYEAR: 907 if year > datetime.MAXYEAR: 1016 if year > datetime.MAXYEAR:
|
/external/python/cpython2/Modules/ |
D | datetimemodule.c | 34 #define MAXYEAR 9999 macro 382 if (year < MINYEAR || year > MAXYEAR) { in check_date_args() 550 if (MINYEAR <= *y && *y <= MAXYEAR) in normalize_y_m_d() 4815 x = new_date(MAXYEAR, 12, 31); in initdatetime() 4851 x = new_datetime(MAXYEAR, 12, 31, 23, 59, 59, 999999, Py_None); in initdatetime() 4863 PyModule_AddIntConstant(m, "MAXYEAR", MAXYEAR); in initdatetime()
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.7rc1.rst | 189 date or datetime falls outside of the MINYEAR:MAXYEAR range.
|
D | 2.7.4rc1.rst | 1567 fix an OverflowError in Calendar.itermonthdates() after datetime.MAXYEAR.
|
/external/python/cpython3/Modules/ |
D | _datetimemodule.c | 41 #define MAXYEAR 9999 macro 404 if (year < MINYEAR || year > MAXYEAR) { in check_date_args() 566 if (MINYEAR <= *y && *y <= MAXYEAR) in normalize_y_m_d() 4699 if (year < MINYEAR || year > MAXYEAR) { in utc_to_seconds() 6330 x = new_date(MAXYEAR, 12, 31); in PyInit__datetime() 6366 x = new_datetime(MAXYEAR, 12, 31, 23, 59, 59, 999999, Py_None, 0); in PyInit__datetime() 6415 PyModule_AddIntMacro(m, MAXYEAR); in PyInit__datetime()
|
/external/python/cpython3/Lib/test/ |
D | datetimetester.py | 27 from datetime import MINYEAR, MAXYEAR 64 self.assertEqual(datetime.MAXYEAR, 9999) 1032 for year in range(MINYEAR, MAXYEAR+1, 7): 1086 self.theclass(MAXYEAR, 1, 1) # no exception 1088 self.assertRaises(ValueError, self.theclass, MAXYEAR+1, 1, 1) 1939 dt1 = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999998) 1959 self.theclass(MAXYEAR, 1, 1) # no exception 1961 self.assertRaises(ValueError, self.theclass, MAXYEAR+1, 1, 1) 3797 t2 = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999999, 3925 t = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999999, [all …]
|
D | test_calendar.py | 569 list(calendar.Calendar().itermonthdays3(datetime.MAXYEAR, 12))
|
/external/python/cpython3/Lib/ |
D | datetime.py | 15 MAXYEAR = 9999 variable 400 if not MINYEAR <= year <= MAXYEAR: 401 raise ValueError('year must be in %d..%d' % (MINYEAR, MAXYEAR), year)
|
D | calendar.py | 115 if not datetime.MINYEAR <= year <= datetime.MAXYEAR:
|
/external/python/cpython3/Lib/http/ |
D | cookiejar.py | 144 if yr > datetime.MAXYEAR:
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.5.2rc1.rst | 989 datetime.MAXYEAR.
|
D | 3.6.0a1.rst | 1584 datetime.MAXYEAR.
|
/external/python/cpython3/Misc/ |
D | HISTORY | 5822 `datetime.MAXYEAR`. Patch by Cédric Krier. 13351 timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR range.
|