Searched refs:MINYEAR (Results 1 – 10 of 10) 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/cpython3/Doc/library/ |
D | datetime.rst | 53 .. data:: MINYEAR 56 :const:`MINYEAR` is ``1``. 405 * ``MINYEAR <= year <= MAXYEAR`` 464 The earliest representable date, ``date(MINYEAR, 1, 1)``. 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. 870 The earliest representable :class:`.datetime`, ``datetime(MINYEAR, 1, 1, 890 Between :const:`MINYEAR` and :const:`MAXYEAR` inclusive. [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_datetime.py | 13 from datetime import MINYEAR, MAXYEAR 37 self.assertEqual(datetime.MINYEAR, 1) 621 for year in xrange(MINYEAR, MAXYEAR+1, 7): 674 self.theclass(MINYEAR, 1, 1) # no exception 676 self.assertRaises(ValueError, self.theclass, MINYEAR-1, 1, 1) 1320 self.theclass(MINYEAR, 1, 1) # no exception 1322 self.assertRaises(ValueError, self.theclass, MINYEAR-1, 1, 1) 2836 tiny = cls(MINYEAR, 1, 1, 0, 0, 37, tzinfo=UOFS(1439)) 2839 self.assertEqual(t.tm_year, MINYEAR-1)
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.7rc1.rst | 189 date or datetime falls outside of the MINYEAR:MAXYEAR range.
|
/external/python/cpython3/Lib/ |
D | datetime.py | 14 MINYEAR = 1 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/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() 4862 PyModule_AddIntConstant(m, "MINYEAR", MINYEAR); in initdatetime()
|
/external/python/cpython3/Modules/ |
D | _datetimemodule.c | 40 #define MINYEAR 1 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() 6414 PyModule_AddIntMacro(m, MINYEAR); in PyInit__datetime()
|
/external/python/cpython3/Lib/test/ |
D | datetimetester.py | 27 from datetime import MINYEAR, MAXYEAR 63 self.assertEqual(datetime.MINYEAR, 1) 1032 for year in range(MINYEAR, MAXYEAR+1, 7): 1085 self.theclass(MINYEAR, 1, 1) # no exception 1087 self.assertRaises(ValueError, self.theclass, MINYEAR-1, 1, 1) 1958 self.theclass(MINYEAR, 1, 1) # no exception 1960 self.assertRaises(ValueError, self.theclass, MINYEAR-1, 1, 1) 4240 tiny = cls(MINYEAR, 1, 1, 0, 0, 37, tzinfo=UOFS(1439))
|
/external/python/cpython3/Misc/ |
D | HISTORY | 13351 timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR range.
|