<?xml version="1.0" encoding="windows-1252"?>
<node id="1017732" title="Group file per time interval" created="2013-02-07 17:37:44" updated="2013-02-07 17:37:44">
<type id="115">
perlquestion</type>
<author id="411161">
raiten</author>
<data>
<field name="doctext">
&lt;p&gt;Hello monks,

&lt;p&gt;I'm looking for a way to parse a directory and group files which have a create date (or exif create date) at less than n seconds interval between each other (consecutive files in time)
I'm trying to preprocess files to generate a list for hugin panoramic generation.

&lt;p&gt;date is in filename (yyyymmdd_hhMM--name) or in exif create date (exiftool). I can extract a primary list because I tagged my files with a keyword but it's not sufficient to get a good output by panostart.
So in this list of filenames, I want to find a way to generate sublist of files which have a maximum time interval of n seconds between their datetime (typically 5-10 sec)

&lt;p&gt;Any ideas how to do that ?
&lt;p&gt;
&lt;p&gt;Thanks a lot.
Cheers</field>
</data>
</node>
