jonathancnewcomb has asked for the wisdom of the Perl Monks concerning the following question:
Perl Monks:
I have an issue I have been attempting to resolve, I have a set of timestamps in 2 groups, lets say the following:
Group 1:
2012-08-17 12:00:00
2012-08-17 13:00:00
Group 2:
2012-08-17 09:00:00
2012-08-17 12:30:00
What I need is to be able to compare the differences between the 2 time stamps in each group, and then find the intersect time and duration between the 2 groups. Expected output should be something like:
2012-08-17 12:00:00 for 30 minutes
Any assistance would be greatly appreciated
Group 1:
2012-08-17 12:00:00
2012-08-17 13:00:00
Group 2:
2012-08-17 09:00:00
2012-08-17 12:30:00
What I need is to be able to compare the differences between the 2 time stamps in each group, and then find the intersect time and duration between the 2 groups. Expected output should be something like:
2012-08-17 12:00:00 for 30 minutes
Any assistance would be greatly appreciated
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: timestamp manipulation and evaluation
by kennethk (Abbot) on Aug 17, 2012 at 17:37 UTC | |
Re: timestamp manipulation and evaluation
by Kenosis (Priest) on Aug 17, 2012 at 18:22 UTC | |
Re: timestamp manipulation and evaluation
by Kenosis (Priest) on Aug 18, 2012 at 04:12 UTC | |
Re: timestamp manipulation and evaluation
by Anonymous Monk on Aug 17, 2012 at 19:44 UTC | |
by Cristoforo (Curate) on Aug 17, 2012 at 21:01 UTC |
Back to
Seekers of Perl Wisdom