Re: Re: pls suggest a faster date manipulation package

2004-07-28 Thread [EMAIL PROTECTED]
 

 great. I wanted to do date comparisons.  When I used Date::Calc I found it
 superfast (takes only seconds) while the Date::Manip is still terribly
 slow(takes days to process).  Only  problem I am finding is Date::Calc does
 not seem to come with default perl packages.  And I am behind a corporate
 firewall. So I had a tough time installing the package. Finally I
 downloaded the zip file instead of using CPAN module .  But I wonder if I
 am distributing this to customer, how will I install the perl Date::Calc
 package ? My customer is not very technical and a mere copying of this
 package will not work either!! Somehow I have to install it

 thanks
 Santhosh

 Original Message:
 -
 From: Dave Rolsky [EMAIL PROTECTED]
 Date: Thu, 22 Jul 2004 09:13:39 -0500 (CDT)
 To: [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: Re: pls suggest  a faster date  manipulation package


 On Thu, 22 Jul 2004, [EMAIL PROTECTED] wrote:

  I am an experienced perl programmer.  Last month I created some log
  processing routines for a telecom company.  The logs include details of
  millions of call data records with time stamp in the format dd-mm-yy
  hh24:mi:ss  .  I searched for various date manipulation routines and
  finally decided to use Date_Cmp (..) function of Date::Manip  package.
It
  worked, but when I went for actual implementation, it miserably failed
  because it was dead slow in its processing.   Would  you please advice
me
  which functions/packages I have to use for faster date (and time)
  manipulation. Please help



 The fastest datetime module is Date::Calc.  Of course, if it doesn't do
 what you need, then that won't matter.


 -dave

 


mail2web - Check your email from the web at
http://mail2web.com/ .




Re: Re: pls suggest a faster date manipulation package

2004-07-28 Thread Dave Rolsky
On Wed, 28 Jul 2004, [EMAIL PROTECTED] wrote:

  great. I wanted to do date comparisons.  When I used Date::Calc I found it
  superfast (takes only seconds) while the Date::Manip is still terribly
  slow(takes days to process).  Only  problem I am finding is Date::Calc does
  not seem to come with default perl packages.  And I am behind a corporate
  firewall. So I had a tough time installing the package. Finally I
  downloaded the zip file instead of using CPAN module .  But I wonder if I
  am distributing this to customer, how will I install the perl Date::Calc
  package ? My customer is not very technical and a mere copying of this
  package will not work either!! Somehow I have to install it

You should take a look at PAR on CPAN.


-dave

/*===
House Absolute Consulting
www.houseabsolute.com
===*/


Bug: Storable on Infinite Dates Broken

2004-07-28 Thread Max Campos
Just FYI -

Storable freeze seems to fail when running against a
DateTime::Infinite::Future/Past object.  I believe it's because
$self-{locale} is not being defined.

I don't have a patch, but I thought you may want to at least scribble this
one down in the bug tracker.

===
use DateTime::Infinite;
use Storable;

my $future = DateTime::Infinite::Future-new;
Storable::freeze($future);
===

Item #1 returned by STORABLE_freeze for DateTime::Infinite::Future is not
a reference at ../../lib/Storable.pm (autosplit into
../../lib/auto/Storable/_freeze.al) line 282, at foo line 5