Created
May 20, 2018 21:09
-
-
Save t2mahesh/66e13fba6c7f596689813edd0c1cd809 to your computer and use it in GitHub Desktop.
Say the time every minute
This file contains 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 os | |
import time | |
while True: | |
now = datetime.datetime.now() | |
print now.hour, now.minute | |
sayit = 'say %d:%d' % (now.hour, now.minute) | |
os.system(sayit) | |
time.sleep(60) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment