unix timeとdatetimeの変換
pythonimport datetime
datetime.datetime.fromtimestamp(1)
# => datetime.datetime(1970, 1, 1, 9, 0, 1)
datetime.date.fromtimestamp(1)
# => datetime.date(1970, 1, 1)
import datetime
datetime.datetime.fromtimestamp(1)
# => datetime.datetime(1970, 1, 1, 9, 0, 1)
datetime.date.fromtimestamp(1)
# => datetime.date(1970, 1, 1)