0
試圖轉換字符串對象到年月日時
這裏s是一個字符串..
====== datetime_new.py ======== ====
s="05/30/2013:10:47:34"
mytime = time.strptime(s, "%m/%d/%Y %H:%M:%S")
print mytime
得到一個錯誤,如:
ValueError: time data '05/30/2013:10:47:34' does not match format '%m/%d/%Y %H:%M:%S'