britney has asked for the wisdom of the Perl Monks concerning the following question:
Hi all, I learned Perl and did not use for 5 yrs, so i returned to my teacher everything :-(. Would you please show me how to get report in this in perl?
- Here is my report.logHow do i search date from DATE1 to DATE2 and it tell me : Which team , location and how long? (longest time end time - start time) Example:1,BEAR,2011-11-21 08:49:16.000,2011-11-21 08:53:13.910,San Francisco,, +, 2,BEAR,2011-11-21 08:49:16.000,2011-11-21 12:50:31.550,San Francisco,, +, 3,BEAR,2011-11-21 08:49:16.000,2011-11-21 08:49:19.987,San Francisco,, +, 4,HAWK,2011-11-21 10:36:26.000,2011-11-21 10:45:11.823,Los Angeles,,, 5,HAWK,2011-11-21 10:36:26.000,2011-11-21 12:41:17.763,Los Angeles,,, 6,HAWK,2011-11-21 10:41:12.000,2011-11-21 10:55:08.393,San Francisco,, +, 7,HAWK,2011-11-21 10:41:12.000,2011-11-21 15:46:24.707,San Francisco,, +, 8,HAWK,2011-11-21 10:41:12.000,2011-11-22 11:09:13.907,San Francisco,, +,
Thanks for sharing.BEAR,San Francisco, timediff (2011-11-21 12:50:31.550 - 2011-11-21 08: +49:16.000) in hours HAWK,Los Anegles, timediff (2011-11-21 12:41:17.763 - 2011-11-21 10:36 +:26.000) in hours HAWK,San Francisco, timediff (2011-11-22 11:09:13.907 - 2011-11-21 10: +41:12.000) in hours
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need help get longest timediff
by GrandFather (Saint) on Jan 04, 2012 at 01:16 UTC | |
|
Re: Need help get longest timediff
by ambrus (Abbot) on Jan 04, 2012 at 08:38 UTC | |
|
Re: Need help get longest timediff
by Anonymous Monk on Jan 04, 2012 at 01:14 UTC | |
|
Re: Need help get longest timediff
by Marshall (Canon) on Jan 04, 2012 at 09:51 UTC | |
|
Re: Need help get longest timediff
by Cristoforo (Curate) on Jan 05, 2012 at 02:52 UTC |