Convert Epoch Time to Datetime in Python

import datetime


epoch_time = 1541290680

result_datetime = datetime.datetime.fromtimestamp(epoch_time)

print(result_datetime) 

#prints 2018-11-04 12:18:00


or alternatively, if you're in rush, head to online epoch converter here


code source: https://www.javatpoint.com/python-epoch-to-datetime

Komentar

Postingan populer dari blog ini

Fakta dan Cerita di Balik Lagu-lagu OASIS

Bandung

Sandwich Generation My Ass