Formatting Time

Ognjen Bezanov ognjen at mailshack.com
Fri Jun 3 04:29:41 EDT 2005


I never thought id need help with such a thing as time formatting
(admittadly i never did it before) but ok, i guess there is a first for
everything.

I have a float variable representing seconds, and i want to format it
like this:

0:00:00  (h:mm:ss)

Now search as I might i am finding this quite elusive, i had a look at
the time module but that seems overly complicated for this. Anyone got
any simple solutions to doing this? cheers!





More information about the Python-list mailing list