Home
last modified time | relevance | path

Searched refs:MINYEAR (Results 1 - 4 of 4) sorted by relevance

/third_party/python/Lib/
H A Ddatetime.py8 "MINYEAR", "MAXYEAR", "UTC")
19 MINYEAR = 1 variable
461 if not MINYEAR <= year <= MAXYEAR:
519 if not MINYEAR <= year <= MAXYEAR:
520 raise ValueError('year must be in %d..%d' % (MINYEAR, MAXYEAR), year)
H A Dcalendar.py117 if not datetime.MINYEAR <= year <= datetime.MAXYEAR:
/third_party/python/Modules/
H A D_datetimemodule.c63 #define MINYEAR 1 macro
269 * here. But so long as MINYEAR is 1, the smallest year this in days_before_year()
456 if (year < MINYEAR || year > MAXYEAR) { in check_date_args()
618 if (MINYEAR <= *y && *y <= MAXYEAR) in normalize_y_m_d()
3117 if (year < MINYEAR || year > MAXYEAR) { in date_fromisocalendar()
4995 if (year < MINYEAR || year > MAXYEAR) { in utc_to_seconds()
6836 if (PyModule_AddIntMacro(module, MINYEAR) < 0) { in _datetime_exec()
/third_party/python/Lib/test/
H A Ddatetimetester.py27 from datetime import MINYEAR, MAXYEAR namespace
68 self.assertEqual(datetime.MINYEAR, 1)
87 allowed = set(['MAXYEAR', 'MINYEAR', 'date', 'datetime',
1147 for year in range(MINYEAR, MAXYEAR+1, 7):
1200 self.theclass(MINYEAR, 1, 1) # no exception
1202 self.assertRaises(ValueError, self.theclass, MINYEAR-1, 1, 1)
1934 (MINYEAR, 1, 1),
2191 self.theclass(MINYEAR, 1, 1) # no exception
2193 self.assertRaises(ValueError, self.theclass, MINYEAR-1, 1, 1)
4803 tiny = cls(MINYEAR,
[all...]

Completed in 21 milliseconds