Robert Klemme wrote in post #1041261:
> On Mon, Jan 16, 2012 at 11:56 PM, Christopher Graves
> <gravescl / gmail.com> wrote:
>>
>> What would be the best way to get the current time formatted per the log
>> entries and collect a range of times say from current to 15 minutes
>> previously.
>
> I am not sure what you mean by "collect a range".  Parsing can be done
> like this:
>
> require 'time'
> t = Time.strptime('01/10/2012 14:46:02:86', '%m/%d/%Y %H:%M:%S:%L')
>
> Cheers
>
> robert

Thanks Robert,

By collect range, how would I say subtract 15 minutes from the current 
time so that I can collect all matches from 14:31:02 through 14:46:02?

-- 
Posted via http://www.ruby-forum.com/.