How to handle opening and close time in Python?
<p>I have open and close times of restaurants in this format in the database in 2 columns </p>

<pre><code>opencol:00:00 closecol:24:00 weekday:1, 
opencol:23:00,closecol:02:00 weekday:2 etc. 
</code></pre>

<p>Some, restaurants have 2 records for the same week day  like</p>

<pre><code>opencol:11:00 closecol:14:00 weekday:1
opencol:16:00 closecol:23:00 weekday:1
</code></pre>

<p>My use case is to figure out based on current time, if a restaurant is open? How do I handle the above 2 scenarios?</p>
