Created
April 12, 2018 11:42
-
-
Save wido/6e0beb74a742080a3cdc1097c4f9322b to your computer and use it in GitHub Desktop.
Python UNIX timestamp nanoseconds
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
# Get the current UNIX Timestamp in nanoseconds | |
# | |
# Author: Wido den Hollander <wido@widodh.nl> | |
import time | |
now = int(round(time.time() * 1000000000)) | |
print(now) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment