Current date and time

William Park parkw at better.net
Tue Jun 20 01:03:56 EDT 2000


On Tue, Jun 20, 2000 at 04:54:35AM +0000, dsavitsk wrote:
> what is the easiest way to get the current date and or time?
> something like
> >>> print Now()
> is what i am hoping to find.
> thanks
> doug

>>> import time
>>> time.ctime(time.time())
'Tue Jun 20 01:02:03 2000'

--William




More information about the Python-list mailing list