in reply to Comparing two dates and getting back difference in days

As you say, Date::Manip is big, slow, and horrible documentation--but boy is it ever flexible.

Should you consider using it, you may find this Re: Elapsed date and time helpful.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Timing (and a little luck) are everything!

  • Comment on Re: Comparing two dates and getting back difference in days

Replies are listed 'Best First'.
Re: Re: Comparing two dates and getting back difference in days
by Paulster2 (Priest) on Jan 21, 2004 at 19:44 UTC

    If you look at the rest of the nodes that I have written you will discover that I am a big Date::Manip fan.

    That been said, I think that "slow" is a relative term. Yes it is big, but when ever I have implimented it into my scripts, I have found very little, if any, time lag. If you are trying to scrape every last clock cycle out of a huge script, you probably don't want to use it. But if a milli-second or so doesn't matter to you, the flexibility of Date::Manip makes it more than worth it. I can honestly say that I haven't used any of the other Date conversion modules, mainly because Date::Manip has everything that I need. I guess once you get to know a module, you kind of get stuck on it. Mind you that I am not knocking any of the other modules, I just think that for what you get out of it, Date::Manip is where it's at.

    Paulster2