Created
January 20, 2017 20:21
-
-
Save KameronKales/3ea4a5201293f60dac9f39c976c50ec7 to your computer and use it in GitHub Desktop.
gist to determine next available conference room
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime as dt | |
minute = dt.now().minute | |
if minute <= 60: | |
if minute <=15: | |
time = 15 | |
elif minute <=30: | |
time = 30 | |
elif minute <=45: | |
time = 45 | |
else: | |
time = '00' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment