Do you mean epoch time?  if so, the below example would work.  <br><br>>>> import time,datetime<br>>>> t = datetime.datetime.now()<br>>>> print t<br>2007-02-20 13:09:34.851000<br>>>> print "Epoch Seconds:", 
time.mktime(t.timetuple())<br>Epoch Seconds: 1171994974.0<br><br># go the other way<br>>>> epochtime = 1171994974<br>>>> now = datetime.datetime.fromtimestamp(epochtime)<br>>>> print now<br>2007-02-20 13:09:34
<br><br><div><span class="gmail_quote">On 2/20/07, <b class="gmail_sendername">Vishal Bhargava</b> <<a href="mailto:vishal@veriwave.com">vishal@veriwave.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Is there an inbuilt library in Python which you can use to convert time in<br>seconds to hh:mm:ss format?<br>Thanks,<br>Vishal<br><br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list
</a><br></blockquote></div><br>