title: Comparing dates to check for old files
body: <p>I want to check if a file is older than a certain amount of time (e.g. 2 days).</p>
  
  <p>I managed to get the file creation time in such a way:</p>
  
  <pre><code>&gt;&gt;&gt; import os.path, time
  &gt;&gt;&gt; fileCreation = os.path.getctime(filePath)
  &gt;&gt;&gt; time.ctime(os.path.getctime(filePath))
  'Mon Aug 22 14:20:38 2011'
  </code></pre>
  
  <p>How can I now check if this is older than 2 days?</p>
  
  <p>I work under Linux, but a cross platform solution would be better. Cheers!</p>