Skip to content

Instantly share code, notes, and snippets.

@ChristinaMeno
Created April 5, 2011 18:07
Show Gist options
  • Save ChristinaMeno/904150 to your computer and use it in GitHub Desktop.
Save ChristinaMeno/904150 to your computer and use it in GitHub Desktop.
from datetime import time
from datetime import datetime
broadcast_start = time(*map(int, time(12,41,).strftime('%H:%M').split(':')))
broadcast_end = time(*map(int, time(15,41,).strftime('%H:%M').split(':')))
broadcast_start <= datetime.now().time() < broadcast_end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment