Current date and time

Aeneas shan_mu
Tue Jun 20 21:18:51 EDT 2000


How do you format the result as--
"Tuesday  20 June 2000  21:18hr" ?
Thanks.

"William Park" <parkw at better.net> wrote in message
news:20000620010356.A892 at better.net...
> 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