我無法圍繞此包裹我的頭。python datetime.utcnow沒有顯示正確的時間戳
假設unixtime是自1970.1.1以來的總秒數,爲什麼datetime.utcnow()。timestamp()返回不同的數字?
>>> from datetime import datetime
>>> now = datetime.utcnow()
>>> print(now.timestamp())
1492525439.406112
>>> print((now-datetime(1970,1,1)).total_seconds())
1492536239.406112