Convert seconds in minutes, hours, days, years ...

Magnus Lie Hetland mlh at
Thu Jan 16 18:46:21 CET 2003

In article <399d6c30.0301160510.38703bfe at>, Loko wrote:
>Isn't there an already package that contains functions to convert a
>number of seconds into year, days, hours, minutes and seconds ?
>Do I have to write it ?

In addition to the time module, you might also want to check out the
datetime module (new in Python 2.3)


Magnus Lie Hetland

More information about the Python-list mailing list