Created
November 28, 2018 20:12
-
-
Save stucka/022877f83f23f0508ccf71e6d02ab871 to your computer and use it in GitHub Desktop.
Easy timestamp in Python
This file contains hidden or 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
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