In Python, how can I put a thread to sleep until a specific time?
<p>I know that I can cause a thread to sleep for a specific amount of time with:</p>

<pre><code>time.sleep(NUM)
</code></pre>

<p>How can I make a thread sleep until 2AM?  Do I have to do math to determine the number of seconds until 2AM?  Or is there some library function?</p>

<p>( Yes, I know about cron and equivalent systems in Windows, but I want to sleep my thread in python proper and not rely on external stimulus or process signals.)</p>
