title: Python time to age
body: <p>I'm trying to convert a date string into an age.</p>
  
  <p>The string is like: "Mon, 17 Nov 2008 01:45:32 +0200" and I need to work out how many days old it is.</p>
  
  <p>I have sucessfully converted the date using:</p>
  
  <pre><code>&gt;&gt;&gt; time.strptime("Mon, 17 Nov 2008 01:45:32 +0200","%a, %d %b %Y %H:%M:%S +0200")
  (2008, 11, 17, 1, 45, 32, 0, 322, -1)
  </code></pre>
  
  <p>For some reason %z gives me an error for the +0200 but it doesn't matter that much.</p>
  
  <p>I can get the current time using:</p>
  
  <pre><code>&gt;&gt;&gt; time.localtime()
  (2009, 2, 3, 19, 55, 32, 1, 34, 0)
  </code></pre>
  
  <p>but how can I subtract one from the other without going though each item in the list and doing it manually?</p>