title: Convert datetime.time to seconds
body: <p>I have an object of type <code>datetime.time</code>. How do I convert this to an int representing its duration in seconds? Or to a string, which I can then convert to a second representation by splitting?</p>