home
NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

Convert An Epoch Seconds Number To A Human Readable Datetime In Python

November 2021

Quick converter to move epoch seconds to a date time.

Code
import time

  epoch_seconds = 1614450472

  my_time = time.strftime('%Y-%d-%m %H:%M:%S', time.localtime(epoch_seconds))

  print(my_time)
Results
2021-27-02 13:27:52

via: https://stackoverflow.com/a/12400584/102401

** TKTKTKTK

- Determine if it translates to local timezone or GMT

═══ § ═══