A Module on Time & Date
Robert Maas, see http://tinyurl.com/uh3t
rem642b at Yahoo.Com
Mon Jun 27 01:28:07 EDT 2005
> From: Sakesun Roykiattisak <sakesun at boonthavorn.com>
> import datetime
> print datetime.datetime.now()
That doesn't work here:
% python
Python 2.2.2 (#1, Feb 17 2003, 21:01:54)
[GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named datetime
By comparison, import os works just fine, for example:
http://www.rawbw.com/~rem/HelloPlus/hellos.html#python1
More information about the Python-list
mailing list