Advertisement
GauHelldragon

GauClock v0.1

May 12th, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. while true do
  2.     local myTime = os.time()
  3.     local hour = math.floor(myTime)
  4.     local minute = myTime - hour
  5.    
  6.     if ( hour > 12 ) then hour = hour - 1 end
  7.     minute = math.floor(minute * 60)
  8.    
  9.     print(hour ..":"..minute)
  10.  
  11.     os.sleep(60)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement