Created
July 2, 2018 19:00
-
-
Save duhaime/0df475726b04490cd13c19b1ee95cd81 to your computer and use it in GitHub Desktop.
Python: Get current timestamp
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 | |
print( str(datetime.datetime.now()).split('.')[0] ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment