Robonado

Relógio Digital

Apr 30th, 2015
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. GMT= -3; -- Fuso horário de sua região
  2.  
  3. eventLoop= table.foreach(os,function(i,v) _G[i]= v; end) or function()
  4.     local t= date('%H %M')
  5.     dp= ui.addTextArea(1, '<font face="Lucida Console">'..((t:sub(0,2) -2 +GMT)%24)..(dp and ':' or ' ')..t:sub(-2)) or not dp;
  6. end
Advertisement
Add Comment
Please, Sign In to add comment