The datetime module exports the following constants:
MINYEAR
MAXYEAR
For Example:
>>> import web # Necessary to set up the paths so datetime can be imported >>> import datetime >>> datetime.MINYEAR 1 >>> datetime.MAXYEAR 9999