[Python-bugs-list] [ python-Bugs-423033 ] time module docs vs implementation
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 10 May 2001 09:02:27 -0700
Bugs item #423033, was updated on 2001-05-10 07:01
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=423033&group_id=5470
Category: Python Library
Group: None
>Status: Closed
>Resolution: Works For Me
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: time module docs vs implementation
Initial Comment:
Goal: Print current time
Library reference docs state "time.asctime()" should work
However,
Python 1.5.2 (#1, Feb 1 2000, 16:32:16) [GCC
egcs-2.91.66 19990314/Linux (egcs- on linux-i386
>>> import time
>>> print time.asctime()
gives "TypeError: function requires at least one argument"
same holds for time.gmtime() and time.localtime() as well
The only way to print current time afaik is
>>> print time.asctime( time.localtime( time.time()) )
which is quite more complicated than promised
----------------------------------------------------------------------
>Comment By: Jeremy Hylton (jhylton)
Date: 2001-05-10 09:02
Message:
Logged In: YES
user_id=31392
The current documentation applies to Python 2.1. If you're
using
Python 1.5.2, you'll need to use the Python 1.5.2 docs.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=423033&group_id=5470