Last active
May 5, 2019 02:50
-
-
Save CrashLaker/3dd7bb3c11d101ba0df3db0e8b6ab465 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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