Skip to content

Instantly share code, notes, and snippets.

@KameronKales
Created January 20, 2017 20:21
Show Gist options
  • Save KameronKales/3ea4a5201293f60dac9f39c976c50ec7 to your computer and use it in GitHub Desktop.
Save KameronKales/3ea4a5201293f60dac9f39c976c50ec7 to your computer and use it in GitHub Desktop.
gist to determine next available conference room
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