http://www.perlmonks.org?node_id=961994


in reply to Re: Calculation of the time overlapping
in thread Calculation of the time overlapping

Thank you very much, this sounds encouraging !
Unfortunately my ActiveState installation bites me again.
There is no DateTime::Span module there available, only DateTime::Span::Common. If I start with DateTime::Span::Common (just a use declaration to test) it dies "Can't locate DateTime/Span.pm in @INC ..."
Trying to install with cpan from the command line brings an error message
"Warning: Cannot install DataTime::span, don't know what it is. Try the command i /DataTime::span/ to find objects with matching identifiers.
There is not DateTime::Duration module, only Datetime::Duration::Fuzzy.
:-( Update: Sorry! There is DataTime::Duration there, sorry, I have used the false script.

Replies are listed 'Best First'.
Re^3: Calculation of the time overlapping
by Anonymous Monk on Mar 27, 2012 at 18:41 UTC
Re^3: Calculation of the time overlapping
by Anonymous Monk on Mar 27, 2012 at 18:44 UTC

      Thank you very much!

      The link to the ppm repository and the hint that DateTime::Span is in the DateTime::Set distribution did it!
      Now have run the new script - in fact your script - against the "real life" data from the first post.
      Start: Tue Mar 27 21:12:58 2012 End: Tue Mar 27 21:13:34 2012
      That means over 15 times faster!
      Many many thanks again!
      VE