Created
November 6, 2018 21:47
-
-
Save gingerrific/f77f9fcf7bf8804c79589e6de7e21353 to your computer and use it in GitHub Desktop.
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
UNIX_EPOCH_DATETIME = datetime.datetime(1970, 1, 1) | |
def get_current_utc_timestamp_ms(): | |
return int(round((datetime.datetime.utcnow() - UNIX_EPOCH_DATETIME).total_seconds() * 1000)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment