Home
last modified time | relevance | path

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

/third_party/python/Doc/library/
Ddatetime.rst76 .. data:: MINYEAR
79 :const:`MINYEAR` is ``1``.
477 * ``MINYEAR <= year <= MAXYEAR``
548 The earliest representable date, ``date(MINYEAR, 1, 1)``.
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.
1055 The earliest representable :class:`.datetime`, ``datetime(MINYEAR, 1, 1,
1075 Between :const:`MINYEAR` and :const:`MAXYEAR` inclusive.
[all …]
/third_party/python/Lib/
Ddatetime.py19 MINYEAR = 1 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.c58 #define MINYEAR 1 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()
6632 if (PyModule_AddIntMacro(module, MINYEAR) < 0) { in _datetime_exec()
/third_party/python/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)
4499 tiny = cls(MINYEAR, 1, 1, 0, 0, 37, tzinfo=UOFS(1439))
/third_party/python/Misc/
DHISTORY13351 timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR range.