How to get current date

Rainy sill at optonline.net
Tue Jun 12 03:29:09 CEST 2001


On Tue, 12 Jun 2001 09:02:09 +0800, ykchew <ykchew at hotmail.com> wrote:
> Hi there,
>    I'm newbies and i want to know to get current date from python2.0 and
> merge it with string
> 
> thanks
> 
> 

import time
time.time()
or, formatted:
time.ctime(time.time())


-- 
"Your password must be at least 18770 characters and cannot repeat any of your 
previous 30689 passwords. Please type a different password. Type a password 
that meets these requirements in both text boxes."
                                 (Error message from Microsoft Windows 2000 SP1)



More information about the Python-list mailing list