>
> I *think* this is the "correct" way to do it:
>
> def timedelta_to_microseconds(td):
>     return td.microseconds + td.seconds * 1000 + td.days * 86400000
>
> (hardly tested)
>
> -CHB
>

1000?  milli? micro?


-- 
INADA Naoki  <[email protected]>
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to