Problem with time

ian no at spam.fr
Fri Mar 23 04:32:09 EDT 2007


"Steve Holden" <steve at holdenweb.com> a écrit dans le message de news:
mailman.5482.1174589514.32031.python-list at python.org...
> import time
> import datetime
>
> dbtd = <timedelta from database>
> h, m, s = time.localtime()[3:6]
> timenow = s + (60 * (m + 60 * h))

Look like ok, thanks all :)





More information about the Python-list mailing list