Skip to content

Instantly share code, notes, and snippets.

@stucka
Created November 28, 2018 20:12
Show Gist options
  • Save stucka/022877f83f23f0508ccf71e6d02ab871 to your computer and use it in GitHub Desktop.
Save stucka/022877f83f23f0508ccf71e6d02ab871 to your computer and use it in GitHub Desktop.
Easy timestamp in Python
def timestamp():
import datetime
return(datetime.datetime.strftime(datetime.datetime.now(), "%Y-%m-%dT%H:%M:%S"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment