Advertisement
grizlik

Simple clock

Jul 1st, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. from __future__ import print_function
  2. from time import gmtime, strftime, sleep
  3. import sys
  4.  
  5. while 1:
  6.     print(" UTC Time:", strftime("%H:%M:%S", gmtime()), end="\r")
  7.     sys.stdout.flush()
  8.     sleep(0.1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement