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

Magnus Lie Hetland mlh at furu.idi.ntnu.no
Thu Jan 16 18:46:21 CET 2003


In article <399d6c30.0301160510.38703bfe at posting.google.com>, Loko wrote:
>Hello
>
>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)

>Thanx
>Loko

-- 
Magnus Lie Hetland
http://hetland.org




More information about the Python-list mailing list