How to get and compare date and time of given files in python
<p>Is there any handy functions can retrieve timestamp from given files or even compare them? My ideal usage would be like this:</p>

<pre><code>time_diff = date(file_path_a) - date(file_path_b) # time_diff would be a formatted string such as 2days 3hrs 16 mins
</code></pre>

<p>I know there is a built-in datetime module in python, but I haven't found anything similar to my usage. And I know I can achieve similar effect by issuing os.stat(file_path) to get the timestamp, and transform them to the format I want. Just wondering if there are any more handy function to do this.</p>
