Created
September 26, 2014 00:12
-
-
Save Echocage/3c8e561a651d7675ce65 to your computer and use it in GitHub Desktop.
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 datetime | |
import time | |
while True: | |
with open('filename.txt', 'w+') as output: | |
now = datetime.datetime.now().time().strftime('%I:%M:%S') | |
output.write(now) | |
time.sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment