Python 將日期轉換為 timestamp


1
2
import time
time.mktime(time.strptime("2010-4-17", "%Y-%m-%d"));