Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/test/
Dtest_datetime.py13 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 …]
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``.
398 * ``MINYEAR <= year <= MAXYEAR``
447 The latest representable date, ``date(MAXYEAR, 12, 31)``.
460 Between :const:`MINYEAR` and :const:`MAXYEAR` inclusive.
497 :const:`MINYEAR` or larger than :const:`MAXYEAR`.
692 * ``MINYEAR <= year <= MAXYEAR``,
786 :const:`MINYEAR` and :const:`MAXYEAR` inclusive.
842 The latest representable :class:`.datetime`, ``datetime(MAXYEAR, 12, 31, 23, 59,
856 Between :const:`MINYEAR` and :const:`MAXYEAR` inclusive.
[all …]
/external/python/cpython3/Lib/test/
Ddatetimetester.py26 from datetime import MINYEAR, MAXYEAR
61 self.assertEqual(datetime.MAXYEAR, 9999)
934 for year in range(MINYEAR, MAXYEAR+1, 7):
988 self.theclass(MAXYEAR, 1, 1) # no exception
990 self.assertRaises(ValueError, self.theclass, MAXYEAR+1, 1, 1)
1666 dt1 = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999998)
1686 self.theclass(MAXYEAR, 1, 1) # no exception
1688 self.assertRaises(ValueError, self.theclass, MAXYEAR+1, 1, 1)
3025 t2 = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999999,
3113 t = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999999,
[all …]
Dtest_calendar.py502 list(calendar.Calendar().itermonthdates(datetime.MAXYEAR, 12))
/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()
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/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()
4219 if (year < MINYEAR || year > MAXYEAR) { in utc_to_seconds()
5702 x = new_date(MAXYEAR, 12, 31); in PyInit__datetime()
5738 x = new_datetime(MAXYEAR, 12, 31, 23, 59, 59, 999999, Py_None, 0); in PyInit__datetime()
5786 PyModule_AddIntMacro(m, MAXYEAR); in PyInit__datetime()
/external/python/cpython3/Lib/
Ddatetime.py14 MAXYEAR = 9999 variable
282 if not MINYEAR <= year <= MAXYEAR:
283 raise ValueError('year must be in %d..%d' % (MINYEAR, MAXYEAR), year)
/external/python/cpython3/Lib/http/
Dcookiejar.py147 if yr > datetime.MAXYEAR:
/external/python/cpython3/Misc/
DNEWS2735 datetime.MAXYEAR.
4545 datetime.MAXYEAR.
DHISTORY5822 `datetime.MAXYEAR`. Patch by Cédric Krier.
13351 timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR range.
/external/python/cpython2/Misc/
DNEWS3601 datetime.MAXYEAR. Patch by Cédric Krier.
6171 timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR range.