Skip to content

Instantly share code, notes, and snippets.

@duhaime
Created July 2, 2018 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duhaime/0df475726b04490cd13c19b1ee95cd81 to your computer and use it in GitHub Desktop.
Save duhaime/0df475726b04490cd13c19b1ee95cd81 to your computer and use it in GitHub Desktop.
Python: Get current timestamp
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