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:

  • how to find the difference between two dates in perl
  • Perl get days between two dates
  • number of days between two dates using perl
  • no of times url search perl
  • how to get number of days by subtracting two dates in perl
  • perl regular expression find number
  • Oracle perl delta_days method
  • write a perl program to find number of days between two dates
  • perl calculate the difference between two times
  • print the days between 2 dates in perl

No comments yet.

Leave a Comment