Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --coded by snakedude6
- mon = peripherial.wrap("monitor side")
- for s = 1,0.010928961748634,1 then
- if s == 60 then
- m = m+1
- s = 0
- end
- if m == 60 then
- h = h+1
- m = 0
- end
- if h == 12 then
- h = 1
- a = a+1
- end
- if a == 1 then
- x = night
- else
- x = Day
- end
- if a == 3 then
- a = 1
- d = d+1
- end
- if d == 7 then
- w = w+1
- d = 1
- end
- if w == 52 then
- y = y+1
- w = w-52
- end
- end
- while true do
- mon.print("time is: ", h, ":", m, ":", s, "of", x, " ", d, "week ", w, "of year ", y)
- mon.clear()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement