1>>> import datetime
2>>> datetime.datetime.fromtimestamp(1347517370).strftime('%Y-%m-%d %H:%M:%S')
3'2012-09-13 14:22:50' # Local time
4
1>>> import datetime
2>>> datetime.datetime.utcfromtimestamp(1347517370).strftime('%Y-%m-%d %H:%M:%S')
3 '2012-09-13 06:22:50'
4# utc time
1>>> datetime.datetime.fromtimestamp(1284286794)
2datetime.datetime(2010, 9, 12, 11, 19, 54)