The datetime module exports the following constants:
MINYEAR
MAXYEARThe datetime module exports the following functions:
| ) |
| sql) |
Warning: The last 3 entries in the tuple are obtained from time.localtime() and do not represent anything.
| sql) |
Warning: The first 3 and last 3 entries in the tuple are obtained from time.localtime() and do not represent anything.
| sql) |
Warning: The last 6 entries in the tuple are obtained from time.localtime() and do not represent anything.
For Example:
>>> import web # Necessary to set up the paths so datetime can be imported
>>> import datetime
>>> datetime.MINYEAR
1
>>> datetime.MAXYEAR
9999
>>> datetime.now()
datetime.datetime(2004,5,3,17,36,18)
>>> datetime.isotime2tuple('17:40:20')
(0, 0, 0, 17, 40, 20, 0, 0, -1)