Home
last modified time | relevance | path

Searched refs:MINYEAR (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython2/Doc/library/
Ddatetime.rst48 .. 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/
Dtest_datetime.py13 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/cpython3/Doc/library/
Ddatetime.rst73 .. data:: MINYEAR
76 :const:`MINYEAR` is ``1``.
474 * ``MINYEAR <= year <= MAXYEAR``
545 The earliest representable date, ``date(MINYEAR, 1, 1)``.
563 Between :const:`MINYEAR` and :const:`MAXYEAR` inclusive.
600 :const:`MINYEAR` or larger than :const:`MAXYEAR`.
831 * ``MINYEAR <= year <= MAXYEAR``,
943 :const:`MINYEAR` and :const:`MAXYEAR` inclusive.
1052 The earliest representable :class:`.datetime`, ``datetime(MINYEAR, 1, 1,
1072 Between :const:`MINYEAR` and :const:`MAXYEAR` inclusive.
[all …]
/external/python/cpython3/Lib/
Ddatetime.py18 MINYEAR = 1 variable
419 if not MINYEAR <= year <= MAXYEAR:
420 raise ValueError('year must be in %d..%d' % (MINYEAR, MAXYEAR), year)
897 if not MINYEAR <= year <= MAXYEAR:
Dcalendar.py115 if not datetime.MINYEAR <= year <= datetime.MAXYEAR:
/external/python/cpython2/Misc/NEWS.d/
D2.7rc1.rst189 date or datetime falls outside of the MINYEAR:MAXYEAR range.
/external/python/cpython3/Modules/
D_datetimemodule.c56 #define MINYEAR 1 macro
421 if (year < MINYEAR || year > MAXYEAR) { in check_date_args()
583 if (MINYEAR <= *y && *y <= MAXYEAR) in normalize_y_m_d()
3029 if (year < MINYEAR || year > MAXYEAR) { in date_fromisocalendar()
4937 if (year < MINYEAR || year > MAXYEAR) { in utc_to_seconds()
6672 PyModule_AddIntMacro(m, MINYEAR); in PyInit__datetime()
/external/python/cpython2/Modules/
Ddatetimemodule.c33 #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/Lib/test/
Ddatetimetester.py26 from datetime import MINYEAR, MAXYEAR
63 self.assertEqual(datetime.MINYEAR, 1)
1136 for year in range(MINYEAR, MAXYEAR+1, 7):
1189 self.theclass(MINYEAR, 1, 1) # no exception
1191 self.assertRaises(ValueError, self.theclass, MINYEAR-1, 1, 1)
1888 (MINYEAR, 1, 1),
2145 self.theclass(MINYEAR, 1, 1) # no exception
2147 self.assertRaises(ValueError, self.theclass, MINYEAR-1, 1, 1)
4498 tiny = cls(MINYEAR, 1, 1, 0, 0, 37, tzinfo=UOFS(1439))
/external/python/cpython3/Misc/
DHISTORY13351 timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR range.