python datetime fromtimestamp
2010-09-17 11:45
import datetime
import time >>> datetime.datetime.fromtimestamp(1284692703) datetime.datetime(2010, 9, 17, 11, 5, 3) >>> datetime.datetime.fromtimestamp(time.time()) datetime.datetime(2010, 9, 17, 11, 1, 31, 680000) |