Advertisement
Guest User

timer

a guest
Nov 25th, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. min = min + 1;
  2. if min == 60 then min=0;
  3. hr = hr + 1;
  4. end
  5. if hr == 13 then
  6. hr = 1;
  7. end
  8. if hr == 24 then
  9. hr = 12;
  10. end
  11. if hr == 24 and
  12. min == 0 then
  13. dot = "am"
  14. end
  15. if hr == 12 and
  16. min == 0 then
  17. dot = "pm"
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement