Days between two dates

Simon Wistow simon at
Thu Dec 22 15:31:32 GMT 2005

On Thu, Dec 22, 2005 at 03:28:48PM +0000, me said:
> I'm hoping there's a better way.

If you're not wedded to DateTime or are willing to Mix'n'Match

use Date::Calc qw(Delta_Days);

print Delta_Days(2005,12,14, 2005, 12, 25)."\n";

More information about the mailing list