Skip to content

Instantly share code, notes, and snippets.

@gingerrific
Created November 6, 2018 21:47
Show Gist options
  • Save gingerrific/f77f9fcf7bf8804c79589e6de7e21353 to your computer and use it in GitHub Desktop.
Save gingerrific/f77f9fcf7bf8804c79589e6de7e21353 to your computer and use it in GitHub Desktop.
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