Calculate seconds from now to specified time today or tomorrow
<p>I would have thought this question would already have an answer, but it doesn't seem to. In Python, I want to calculate the number of seconds from "now" to a specified time "today" or "tomorrow," whenever it next occurs (e.g., the next occurrence of 6:30 AM). The plan is to count down seconds and set off a musical alarm at the specified time. I'm pretty new at Python, and the <code>datetime</code> documentation hasn't helped me with this so far. Can somebody give me some assistance with this?</p>