Time Ranges



Hi,

I been lurking here for a while, looking for the solution to a
particular problem. I have some data like the following.

GE,08/12/2005 15:39:17,a,b,c,d,e,f,g,h,i,j
GE,08/12/2005 15:39:22,a,b,c,d,e,f,g,h,i,j
GE,08/12/2005 15:40:17,a,b,c,d,e,f,g,h,i,j
GE,08/12/2005 15:41:16,a,b,c,d,e,f,g,h,i,j


I would like to create a "snapshot" of this data in a another file, for
each minute of a specified range. The criteria for the snapshot would
be to print data from the latest record of each minute. So above, at
15:39, I would get the 15:39:22 record.

A lot of other conditional processing will happen in the loop; I'm
really just interested in knowing how to lay this out in Perl. So far I
have looked at Date::Manip, Time::Piece, and others. I am able to
generate a range of dates, but not a range of minutes. Then the
question becomes, what kind of comparison to do? Array or hash?

I'm reaching out here because PHP did not cut it on the first go-round.
Is this thing on?


TIA,
Noah

.



Relevant Pages

  • Re: looking for up-to-date LaTex etc for VMS
    ... There you will find instructions for making Perl, Python, and Java ... Blead perl is only available in source form, ... the easiest way to do that is grab a snapshot from ... "bleadperl," the development stream leading toward the next major ...
    (comp.os.vms)
  • RE: Please take a moment...
    ... 'Kirrily's goal is to "take a snapshot of the Perl world as it ... attempt to break out of that echo chamber and hear from all Perl users ... On Mon, 6 Aug 2007, Michael Muratet US-Huntsville wrote: ...
    (perl.dbi.users)
  • Create Snapshot of website
    ... I been trying to research the feasibility of using Perl and/or special modulethat can capture a website page and create a "snapshot" of the website page, ...
    (perl.beginners)