average time calculation??

2013-01-10 Thread pmec
Hi there guys i've got a script that's suppose to find the average of two times as strings. The times are in minutes:seconds:milliseconds i'm doing ok in printing the right minutes and seconds my problem is with the milliseconds. Example if i have 00:02:20 and 00:04:40 the average will be 00:03:

Re: average time calculation??

2013-01-10 Thread pmec
Hi Oscar, Thank you for your reply, and you are absolutely right, I meant hundredths of a second to be outputed -- http://mail.python.org/mailman/listinfo/python-list

Re: average time calculation??

2013-01-10 Thread pmec
Hi Oscar, again I do apologize for my beginner mistakes, I've changed the code taking in consideration some of your and MRAB suggestions. Could you give me an example on how could I use the datetime.timedelta function in this particular case. This is my code: def lap_average(lap1, lap2):