Last active
March 16, 2018 00:28
-
-
Save lita/724d0f82c6d0b80203a09c6ee1b59649 to your computer and use it in GitHub Desktop.
Python Timestamp shit
This file contains hidden or 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 | |
past_limit_date = datetime.datetime.now() + datetime.timedelta(-7) | |
prod_ts = 1521028848183 | |
prod_ds = datetime.utcfromtimestamp(prod_ts/1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment