title: Find Maximum time value from list of time value
body: <p>I need to find the maximum time value from the list:</p>
  
  <pre><code>num[2] = 2012-12-16 16:56:31
  </code></pre>
  
  <p>I have tried with following:</p>
  
  <pre><code>max =0
  for num in list:
   if num[2] &gt; max:
     max = num
  print max
  </code></pre>
  
  <p>But it is showing error:</p>
  
  <pre><code>    if num[5] &gt; max:
  TypeError: can't compare datetime.datetime to int
  </code></pre>