Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- date = os.date()
- i=1
- cloc={}
- for w in string.gmatch(date,"[%w:]+") do
- cloc[i]=w
- i=i+1
- end
- print(cloc[1].." "..cloc[2])
- print(cloc[3].." "..cloc[5])
- hour={}
- i=1
- for w in string.gmatch(cloc[4],"%d+") do
- hour[i]=w
- i=i+1
- end
- print(hour[1]..":"..hour[2])
- print(":"..hour[3])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement