I'm using an old version of python (2.1) and datetime
isn't available until Python 2.3. I can't upgrade my
python.
--- [EMAIL PROTECTED] wrote:
>
> Jean> How do I calculate the elapsed time?
>
> Where t1_s and t2_s reference time strings in the
> format you describe:
>
> import datetime
> import time
>
> fmt = "%b %d %Y %H:%M:%S"
>
> t1 = datetime.datetime(*time.strftime(t1_s,
> fmt)[:6])
> t2 = datetime.datetime(*time.strftime(t2_s,
> fmt)[:6])
> dt = t2 - t1
>
> should do the trick.
>
> Skip
>
>
__________________________________________
Yahoo! DSL Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com
--
http://mail.python.org/mailman/listinfo/python-list