Searched refs:MAXYEAR (Results 1 – 10 of 10) sorted by relevance
/third_party/python/Doc/library/ |
D | datetime.rst | 82 .. 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/ |
D | datetime.py | 20 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:
|
D | calendar.py | 115 if not datetime.MINYEAR <= year <= datetime.MAXYEAR:
|
/third_party/python/Modules/ |
D | _datetimemodule.c | 59 #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/ |
D | datetimetester.py | 26 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 …]
|
D | test_calendar.py | 593 list(calendar.Calendar().itermonthdays3(datetime.MAXYEAR, 12))
|
/third_party/python/Lib/http/ |
D | cookiejar.py | 153 if yr > datetime.MAXYEAR:
|
/third_party/python/Misc/NEWS.d/ |
D | 3.5.2rc1.rst | 988 datetime.MAXYEAR.
|
D | 3.6.0a1.rst | 1583 datetime.MAXYEAR.
|
/third_party/python/Misc/ |
D | HISTORY | 5822 `datetime.MAXYEAR`. Patch by Cédric Krier. 13351 timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR range.
|