Date::Manip will almost certainly do everything you want (and more). None of the design-by-committee, O'Woe engineered alternatives come close for its functionality.
But...If only that functionality were documented worth a damn.
You probably want the DateCalc() function, to construct a delta thingy from your two dates.
But then, you will need to examine (use; print; base decisions upon), the result of that function...and that's where good things go queer. Because, In all the (excessive verbose and tortuous) documentation I've read (and read, and re-read), no where is the return value of DateCalc() documented. Which makes it decidedly hard to...um...decide, what to do with it, once you have it.
Of course, what you will need to do with it will depend largely upon what you want to do with it, but since you don't know what "it" is, it makes the decision of how to do what you want to do with it all the harder.
If you're lucky, sbeck, the clever and dedicated author of Date::Manip will breeze by and explain exactly and succinctly (his post are, unlike his documentation), what you need. Unfortunately, he does not appear to be a regular visitor.
In reply to Re: calculate date difference
by BrowserUk
in thread calculate date difference
by hujunsimon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |