import time
t = time.ctime()
For me at the moment, t is 'Sat Apr 21 11:58:02 2012'. I have more data like this.
My question is:
- How to convert
ttodatetimein Python? Are there any modules to to it?
I tried to make a time dict and then convert t, but feel like that’s not the best way to do it in Python.
Details:
- I have a
ctimelist (like['Sat Apr 21 11:56:48 2012', 'Sat Apr 21 11:56:48 2012']). - I want to convert the contents to
datetime, then store that in adbwithtimestamp.

所有评论(0)