convert from epoch to utc python
datetime_time = datetime.datetime.fromtimestamp(epoch_time)
3.86
7
>>> datetime.datetime.utcfromtimestamp(1347517370).strftime('%Y-%m-%d %H:%M:%S')
'2012-09-13 06:22:50'
Thank you!
7
0
Are there any code examples left?
New code examples in category Python