Skip to content

Instantly share code, notes, and snippets.

@CrashLaker
Last active May 5, 2019 02:50
Show Gist options
  • Save CrashLaker/3dd7bb3c11d101ba0df3db0e8b6ab465 to your computer and use it in GitHub Desktop.
Save CrashLaker/3dd7bb3c11d101ba0df3db0e8b6ab465 to your computer and use it in GitHub Desktop.
import datetime
timestamp = 1556668800.0
date = datetime.datetime.utcfromtimestamp(timestamp)
print(date) # 2019-05-01 00:00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment