Check if a timestamp string is within a time range
<p>I need check if a timestamp string is into a time range:</p>

<pre><code>tt = '26-12-2012 18:32:51'
t1 = datetime.timedelta(0, 28800) #08:00 hrs
t2 = datetime.timedelta(0, 68400) #19:00 hrs
</code></pre>

<p>To compare do I need convert the timestamp into a timedelta?, how can I do that, to compare like:</p>

<pre><code>if tt &gt;= t1 and tt &lt;= t2:
</code></pre>

<p>Thanks..</p>
