title: Comparing file timestamps
body: <p>I want to compare two files from two different folders based on when they were created.</p>
  
  <pre><code>#!/usr/bin/env python
  
  import os, time, datetime 
  f1 = "/home/source/file1.py"
  f2 = "/home/backup3/file1.py"
  os.path.getatime(f1)
  print time.ctime(os.path.getatime(f1))
  print time.ctime(os.path.getatime(f2))
  </code></pre>
  
  <p>The files were created at different times, but I get the same time and date as output; why? I would like to compare the timestamps of these two files so that whenever <code>source/file1.py</code> is changed we make a new copy of it in <code>backup3</code>.</p>