私はPythonでこれを試しています。それらの違いは何ですか:
>>> a = datetime.fromtimestamp(1373576406)
>>> a.replace(tzinfo=tzutc())
datetime.datetime(2013, 7, 12, 0, 0, 6, tzinfo=tzutc())
>>> a.strftime('%s')
'1373576406'
と
>>> datetime.fromtimestamp(1373576406).replace(tzinfo=tzutc()).strftime('%s')
'1373580006'
なぜこれが起こっているのかよくわかりません。両方のタイムスタンプが等しくあるべきではありませんか?
Python 3.3.2 と Python 2.7.1 の両方でこれらを試しました