title: Average time for datetime list
body: <p>Looking for fastest solution of time averaging problem.</p>
  
  <p>I've got a list of datetime objects. Need to find average value of time (excluding year, month, day).
  Here is what I got so far:</p>
  
  <pre><code>import datetime as dtm
  def avg_time(times):
      avg = 0
      for elem in times:
          avg += elem.second + 60*elem.minute + 3600*elem.hour
      avg /= len(times)
      rez = str(avg/3600) + ' ' + str((avg%3600)/60) + ' ' + str(avg%60)
      return dtm.datetime.strptime(rez, "%H %M %S")
  </code></pre>