Searched refs:MAXYEAR (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_datetime.py | 13 from datetime import MINYEAR, MAXYEAR 38 self.assertEqual(datetime.MAXYEAR, 9999) 581 for year in xrange(MINYEAR, MAXYEAR+1, 7): 635 self.theclass(MAXYEAR, 1, 1) # no exception 637 self.assertRaises(ValueError, self.theclass, MAXYEAR+1, 1, 1) 1261 dt1 = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999998) 1281 self.theclass(MAXYEAR, 1, 1) # no exception 1283 self.assertRaises(ValueError, self.theclass, MAXYEAR+1, 1, 1) 2426 t2 = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999999, 2512 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/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() 4813 x = new_date(MAXYEAR, 12, 31); in initdatetime() 4849 x = new_datetime(MAXYEAR, 12, 31, 23, 59, 59, 999999, Py_None); in initdatetime() 4861 PyModule_AddIntConstant(m, "MAXYEAR", MAXYEAR); in initdatetime()
|
/external/python/cpython2/Misc/ |
D | NEWS | 3601 datetime.MAXYEAR. Patch by Cédric Krier. 6171 timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR range.
|