Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- timeOfDay = 0
- if now.hour >= 5 and now.hour <= 11:
- timeOfDay = 1
- if now.hour > 11 and now.hour <= 13:
- timeOfDay = 2
- if now.hour > 13 and now.hour <= 17:
- timeOfDay = 3
- if now.hour > 17 and now.hour < 23:
- timeOfDay = 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement