Sep 27
Permalink

Python Digital Clock

  • #!/usr/bin/env python
  • from time import gmtime, strftime, sleep
  • from os import system
  • while 1:
  • system("clear")
  • print strftime(" %H: %M:%S ", gmtime())
  • sleep(1)