time() returns strange message...
Matthew Dixon Cowles
matt at mondoinfo.com
Wed Dec 12 16:22:51 EST 2001
On Wed, 12 Dec 2001 22:07:20 +0100, Johan Barelds
<j.barelds at good-it.com> wrote:
Dear Johan,
>I am trying to use the time() function which strange results. My
>code is the following:
>import time
>print time()
>the result is:
>TypeError: object of type 'module' is not callable
The time() funcion is one of the various things in the time module:
>>> import time
>>> time.time()
1008192094.3810509
>>> time.ctime(time.time())
'Wed Dec 12 15:21:52 2001'
Regards,
Matt
More information about the Python-list
mailing list