Check current time is between two times
<p>I am trying to check if the current time if between two predermined times and that the day is Monday, Tuesday, Wednesday or Thursday. Something like:</p>

<pre><code>if day = monday, tuesday, wednesday or thursday
   if current_time &gt; 6:00 PM and current_time &lt; 6:15 PM
      then do something
</code></pre>

<p>Here is what I have so far, the only bit left is setting the two times I want to check between:</p>

<pre><code>weekday = datetime.datetime.today().weekday()
hour = datetime.datetime.time(datetime.datetime.now())

if weekday &lt; 5:
    if hour
</code></pre>