Skip to content

Instantly share code, notes, and snippets.

@t2mahesh
Created May 20, 2018 21:09
Show Gist options
  • Save t2mahesh/66e13fba6c7f596689813edd0c1cd809 to your computer and use it in GitHub Desktop.
Save t2mahesh/66e13fba6c7f596689813edd0c1cd809 to your computer and use it in GitHub Desktop.
Say the time every minute
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