上例子:time='Friday, November 18, 2016',将其转换为标准格式:
time_format = datetime.datetime.strptime(time, '%A, %B %d, %Y')
import time
import datetime
time='Friday, November 18, 2016'
time_format=datetime.datetime.strptime(time,'%A, %B %d, %Y')
print time_format
其实就是将你的日期按照下面的对应表写在format中即可转换。
http://blog.chinaunix.net/uid-27659438-id-3350887.html