Created
September 22, 2017 08:35
-
-
Save Gpzim98/92204cb85d1e75aae665beb909b93e30 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 | |
>>> datetime.datetime.now() | |
datetime.datetime(2017, 9, 22, 9, 34, 11, 593128) | |
>>> datetime.datetime.now().timestamp() | |
1506069255.443273 | |
>>> datetime.datetime.now().timestamp() * 1000000000 | |
1.506069262145749e+18 | |
>>> nano_date = datetime.datetime.now().timestamp() * 1000000000 | |
>>> int(nano_date) | |
1506069271086237952 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment