Regd. converting seconds to hh:mm:ss format

Steve Holden steve at holdenweb.com
Tue Feb 20 13:11:22 EST 2007


Vishal Bhargava wrote:
> Is there an inbuilt library in Python which you can use to convert time in
> seconds to hh:mm:ss format?
> Thanks,
> Vishal
> 
Please don't ask a question by editing a reply to an existing thread: 
your question is now filed on many people's computers under "How to test 
if one dict us a subset of another".

Look at the strftime() function in the time module.

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd          http://www.holdenweb.com
Skype: holdenweb     http://del.icio.us/steve.holden
Blog of Note:          http://holdenweb.blogspot.com
See you at PyCon?         http://us.pycon.org/TX2007




More information about the Python-list mailing list