Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. timeOfDay = 0
  2. if now.hour >= 5 and now.hour <= 11:
  3. timeOfDay = 1
  4. if now.hour > 11 and now.hour <= 13:
  5. timeOfDay = 2
  6. if now.hour > 13 and now.hour <= 17:
  7. timeOfDay = 3
  8. if now.hour > 17 and now.hour < 23:
  9. timeOfDay = 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement