title: Get file modification date?
body: <p>I use the following code to get modification date of file if it exists:</p>
  
  <pre><code>if os.path.isfile(file_name):
      last_modified_date = datetime.fromtimestamp(os.path.getmtime(file_name))
  else:
      last_modified_date = datetime.fromtimestamp(0)
  </code></pre>
  
  <p>Is there a more elegant/short way?</p>