Popular recipes tagged "date" and "files" but not "babble"http://code.activestate.com/recipes/tags/-babble+date+files/popular/2014-12-11T10:07:39-08:00ActiveState Code RecipesRedate source files using SVN info from $Id:$ (Python)
2010-07-30T10:00:25-07:00Michal Niklashttp://code.activestate.com/recipes/users/186902/http://code.activestate.com/recipes/577341-redate-source-files-using-svn-info-from-id/
<p style="color: grey">
Python
recipe 577341
by <a href="/recipes/users/186902/">Michal Niklas</a>
(<a href="/recipes/tags/date/">date</a>, <a href="/recipes/tags/datetime/">datetime</a>, <a href="/recipes/tags/file/">file</a>, <a href="/recipes/tags/files/">files</a>, <a href="/recipes/tags/svn/">svn</a>).
</p>
<p>Iterates through a directory, reading the data from svn info that looks like:</p>
<pre class="prettyprint"><code>$Id: svn_redater.py 747 2010-07-30 09:56:08Z mn $
</code></pre>
<p>from source files.</p>
<p>Parses the datetime from svn info and if it differs from file
modification datetime then changes file datetime</p>
JPG files redater by EXIF data (Python)
2014-12-11T10:07:39-08:00Michal Niklashttp://code.activestate.com/recipes/users/186902/http://code.activestate.com/recipes/550811-jpg-files-redater-by-exif-data/
<p style="color: grey">
Python
recipe 550811
by <a href="/recipes/users/186902/">Michal Niklas</a>
(<a href="/recipes/tags/date/">date</a>, <a href="/recipes/tags/exif/">exif</a>, <a href="/recipes/tags/e_uae/">e_uae</a>, <a href="/recipes/tags/files/">files</a>, <a href="/recipes/tags/jpeg/">jpeg</a>, <a href="/recipes/tags/jpg/">jpg</a>, <a href="/recipes/tags/pil/">pil</a>).
Revision 6.
</p>
<p>Iterates through a directory, reading the EXIF data from each jpg/jpeg file.
Parses the date/time from EXIF data and:</p>
<ol>
<li>if it differs from file modification date/time then changes file date/time</li>
<li>moves file to <code>YYYY/YYYY_MM_DD</code> directory</li>
</ol>