Home
last modified time | relevance | path

Searched refs:MAXYEAR (Results 1 – 17 of 17) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_datetime.py13 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 …]
Dtest_calendar.py292 list(calendar.Calendar().itermonthdates(datetime.MAXYEAR, 12))
/external/python/cpython2/Doc/library/
Ddatetime.rst54 .. 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/
Ddatetime.rst59 .. 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/
Drrule.py894 if year > datetime.MAXYEAR:
907 if year > datetime.MAXYEAR:
1016 if year > datetime.MAXYEAR:
/external/python/cpython2/Modules/
Ddatetimemodule.c34 #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/
D2.7rc1.rst189 date or datetime falls outside of the MINYEAR:MAXYEAR range.
D2.7.4rc1.rst1567 fix an OverflowError in Calendar.itermonthdates() after datetime.MAXYEAR.
/external/python/cpython3/Modules/
D_datetimemodule.c41 #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/
Ddatetimetester.py27 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 …]
Dtest_calendar.py569 list(calendar.Calendar().itermonthdays3(datetime.MAXYEAR, 12))
/external/python/cpython3/Lib/
Ddatetime.py15 MAXYEAR = 9999 variable
400 if not MINYEAR <= year <= MAXYEAR:
401 raise ValueError('year must be in %d..%d' % (MINYEAR, MAXYEAR), year)
Dcalendar.py115 if not datetime.MINYEAR <= year <= datetime.MAXYEAR:
/external/python/cpython3/Lib/http/
Dcookiejar.py144 if yr > datetime.MAXYEAR:
/external/python/cpython3/Misc/NEWS.d/
D3.5.2rc1.rst989 datetime.MAXYEAR.
D3.6.0a1.rst1584 datetime.MAXYEAR.
/external/python/cpython3/Misc/
DHISTORY5822 `datetime.MAXYEAR`. Patch by Cédric Krier.
13351 timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR range.