Searched refs:MINYEAR (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython2/Doc/library/ |
D | datetime.rst | 48 .. data:: MINYEAR 51 :const:`MINYEAR` is ``1``. 355 * ``MINYEAR <= year <= MAXYEAR`` 392 The earliest representable date, ``date(MINYEAR, 1, 1)``. 410 Between :const:`MINYEAR` and :const:`MAXYEAR` inclusive. 447 :const:`MINYEAR` or larger than :const:`MAXYEAR`. 640 * ``MINYEAR <= year <= MAXYEAR`` 745 The earliest representable :class:`.datetime`, ``datetime(MINYEAR, 1, 1, 765 Between :const:`MINYEAR` and :const:`MAXYEAR` inclusive. 824 datetime2.year would be smaller than :const:`MINYEAR` or larger than [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_datetime.py | 13 from datetime import MINYEAR, MAXYEAR 37 self.assertEqual(datetime.MINYEAR, 1) 581 for year in xrange(MINYEAR, MAXYEAR+1, 7): 634 self.theclass(MINYEAR, 1, 1) # no exception 636 self.assertRaises(ValueError, self.theclass, MINYEAR-1, 1, 1) 1280 self.theclass(MINYEAR, 1, 1) # no exception 1282 self.assertRaises(ValueError, self.theclass, MINYEAR-1, 1, 1) 2796 tiny = cls(MINYEAR, 1, 1, 0, 0, 37, tzinfo=UOFS(1439)) 2799 self.assertEqual(t.tm_year, MINYEAR-1)
|
/external/python/cpython2/Modules/ |
D | datetimemodule.c | 33 #define MINYEAR 1 macro 382 if (year < MINYEAR || year > MAXYEAR) { in check_date_args() 550 if (MINYEAR <= *y && *y <= MAXYEAR) in normalize_y_m_d() 4860 PyModule_AddIntConstant(m, "MINYEAR", MINYEAR); in initdatetime()
|
/external/python/cpython2/Misc/ |
D | NEWS | 6171 timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR range.
|