Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- -- Get the current time
- local time = os.time()
- local hour = math.floor(time / 3600) % 24
- local minute = math.floor(time / 60) % 60
- local second = time % 60
- -- Display the time
- print(string.format("%02d:%02d:%02d", hour, minute, second))
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement