[Python-Dev] time functions

Ka-Ping Yee ping@lfw.org
2001年1月15日 21:27:33 -0800 (PST)


On 2001年1月16日, Thomas Wouters wrote:
> Actually, I'll split it up in three proposals:
>> - Making the time in time.strftime default to 'now', so that the above
> becomes the ever so slightly confusing:
>> timestr = time.strftime("<format>")
> (confusing because it looks a bit like a regexp constructor...)
>> - Making the time in time.asctime and time.ctime optional, defaulting to
> 'now', so you can just call 'time.ctime()' without having to pass
> time.time() (which are about half the calls in my own code :)
>> - Making the time in time.localtime and time.gmtime default to 'now'.

I like all of these suggestions. Go for it!
-- ?!ng

AltStyle によって変換されたページ (->オリジナル) /