Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Calculation of the time overlapping

by vagabonding electron (Hermit)
on Mar 27, 2012 at 18:33 UTC ( #961994=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^2: Calculation of the time overlapping
Download Code
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://961994]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2015-07-05 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls