Re: problem with datetime

2004-12-10 Thread Bob
Thanks. That did it. And I know better than to use the module name. Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with datetime

2004-12-10 Thread Peter Otten
Bob wrote: > But when I try to run the following small program I get the following > results: > > import datetime > d = datetime.datetime.today() > print d > > Traceback (most recent call last): > File "datetime.py", line 1, in ? > import datetime You are importing your script, not the library

Re: problem with datetime

2004-12-10 Thread Gerhard Haering
On Fri, Dec 10, 2004 at 04:19:56AM -0800, [EMAIL PROTECTED] wrote: > Relatively new to python. I can get the following to work from the > command line: > > Python 2.3.4 (#2, Aug 18 2004, 21:49:15) > [GCC 3.2] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>

problem with datetime

2004-12-10 Thread Bob
Relatively new to python. I can get the following to work from the command line: Python 2.3.4 (#2, Aug 18 2004, 21:49:15) [GCC 3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import datetime >>> d = datetime.datetime.today() >>> d datetime.datetime(2004,

problem with datetime

2004-12-10 Thread bncarper
Relatively new to python. I can get the following to work from the command line: Python 2.3.4 (#2, Aug 18 2004, 21:49:15) [GCC 3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import datetime >>> d = datetime.datetime.today() >>> d datetime.datetime(2004,