Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --v2.3 by GraySloth 2013-Feb-23
- --default is 24-hour time, set militaryTime to false for AM/PM time day to false for no day number
- --variables
- local militaryTime = true --false is AM/PM time
- local day = true --false is no day counter
- --main
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print(textutils.formatTime(os.time(),militaryTime))
- if day then
- print("\nDay:"..os.day())
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment