Skip to content

Instantly share code, notes, and snippets.

@revooms
Created May 6, 2018 15:16
Show Gist options
  • Save revooms/8636faa7ae659fa214150bdb8880de9d to your computer and use it in GitHub Desktop.
Save revooms/8636faa7ae659fa214150bdb8880de9d to your computer and use it in GitHub Desktop.
Python date & time
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