Created
May 6, 2018 15:16
-
-
Save revooms/8636faa7ae659fa214150bdb8880de9d to your computer and use it in GitHub Desktop.
Python date & time
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
import time | |
def timeStamped(fmt='%H:%M:%S'): | |
return time.strftime(fmt).format() | |
with open('../time.txt','w') as outf: | |
outf.write(timeStamped()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment