Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Perl: find the number of days between two dates or times

Perl: find the number of days between two dates or times
{filelink=13226}

use Date::Calc qw(Delta_Days);
@date1 = (2011, 1, 30);
@date2  = (1985, 3, 05);     
# calculate the difference between the dates
$difference = Delta_Days(@date2, @date1);
print "Number<span id="more-200"></span> of days between the two dates: $difference
";

Users who found this page were searching for:

  • list of dates between two dates in perl
  • perl number of days between two dates
  • +perl create array for 30 days
  • how to find difference between two dates in perl
  • how do i find the difference between two dates in perl
  • perl calculate difference between elements in array
  • find number of days between two dates in perl
  • calculate the difference between two dates in perl
  • Perl get days between two dates
  • perl find files between dates

No comments yet.

Leave a Comment