in reply to Getting avg start time

The problem is that the time interval between $time1 and $time3 exceeds 24 hours.

The average calculation is CORRECT. Unless your job runs over 24 hours, I think your $time3 value should be 2007-08-09 , instead of 2007-08-10.

With that value, the average time Shows 1:00:00.

     "An undefined problem has an infinite number of solutions." - Robert A. Humphrey         "If you're not part of the solution, you're part of the precipitate." - Henry J. Tillman