usage on the time module(newbie)

fimafeng at my-deja.com fimafeng at my-deja.com
Wed Jan 17 22:20:53 EST 2001


Hello:

I'm having difficulty with the syntax for the function strptime
in the time module

For instance. If I have a variable....
fred='Mon Jan 15 00:30:24 2001'

what syntax would I use to parse this into a tuple?
I have tried
time.strptime(Mon Jan 15 00:30:24 2001[])
but I receive an error..

I did not see any examples in the documentation.

Any help is greatly appreciated...
Thanks,
Chris
fimafeng at yahoo.com


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list