Home
last modified time | relevance | path

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

/third_party/python/Doc/library/
Ddatetime.rst82 .. data:: MAXYEAR
85 :const:`MAXYEAR` is ``9999``.
477 * ``MINYEAR <= year <= MAXYEAR``
553 The latest representable date, ``date(MAXYEAR, 12, 31)``.
566 Between :const:`MINYEAR` and :const:`MAXYEAR` inclusive.
603 :const:`MINYEAR` or larger than :const:`MAXYEAR`.
834 * ``MINYEAR <= year <= MAXYEAR``,
946 :const:`MINYEAR` and :const:`MAXYEAR` inclusive.
1061 The latest representable :class:`.datetime`, ``datetime(MAXYEAR, 12, 31, 23, 59,
1075 Between :const:`MINYEAR` and :const:`MAXYEAR` inclusive.
[all …]
/third_party/python/Lib/
Ddatetime.py20 MAXYEAR = 9999 variable
388 if not MINYEAR <= year <= MAXYEAR:
389 raise ValueError('year must be in %d..%d' % (MINYEAR, MAXYEAR), year)
866 if not MINYEAR <= year <= MAXYEAR:
Dcalendar.py115 if not datetime.MINYEAR <= year <= datetime.MAXYEAR:
/third_party/python/Modules/
D_datetimemodule.c59 #define MAXYEAR 9999 macro
418 if (year < MINYEAR || year > MAXYEAR) { in check_date_args()
580 if (MINYEAR <= *y && *y <= MAXYEAR) in normalize_y_m_d()
3020 if (year < MINYEAR || year > MAXYEAR) { in date_fromisocalendar()
4928 if (year < MINYEAR || year > MAXYEAR) { in utc_to_seconds()
6567 DATETIME_ADD_MACRO(d, "max", new_date(MAXYEAR, 12, 31)); in _datetime_exec()
6580 DATETIME_ADD_MACRO(d, "max", new_datetime(MAXYEAR, 12, 31, 23, 59, 59, in _datetime_exec()
6635 if (PyModule_AddIntMacro(module, MAXYEAR) < 0) { in _datetime_exec()
/third_party/python/Lib/test/
Ddatetimetester.py26 from datetime import MINYEAR, MAXYEAR
64 self.assertEqual(datetime.MAXYEAR, 9999)
1136 for year in range(MINYEAR, MAXYEAR+1, 7):
1190 self.theclass(MAXYEAR, 1, 1) # no exception
1192 self.assertRaises(ValueError, self.theclass, MAXYEAR+1, 1, 1)
1889 (MAXYEAR, 12, 31),
2126 dt1 = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999998)
2146 self.theclass(MAXYEAR, 1, 1) # no exception
2148 self.assertRaises(ValueError, self.theclass, MAXYEAR+1, 1, 1)
4056 t2 = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999999,
[all …]
Dtest_calendar.py593 list(calendar.Calendar().itermonthdays3(datetime.MAXYEAR, 12))
/third_party/python/Lib/http/
Dcookiejar.py153 if yr > datetime.MAXYEAR:
/third_party/python/Misc/NEWS.d/
D3.5.2rc1.rst988 datetime.MAXYEAR.
D3.6.0a1.rst1583 datetime.MAXYEAR.
/third_party/python/Misc/
DHISTORY5822 `datetime.MAXYEAR`. Patch by Cédric Krier.
13351 timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR range.