develooper Front page | perl.datetime | Postings from February 2006

difference in days

Thread Next
From:
Praveen Ray
Date:
February 28, 2006 14:16
Subject:
difference in days
Message ID:
4404C64E.2090609@grantstreet.com
Hi All
Is there a way to get the difference in days , between two dates?

$dur  = $dt1 - $dt2;

print $dur->days,"\n"

prints days between two dates after factoring out higher units (as the 
documentation says).
How do I get the difference in 'days' ?

Need something like  Date::Calc::Delta_Days .

Thanks

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About