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:

  • calculate number of day in perl
  • how to grep time of day
  • perl regular expression find number
  • number of days between two dates perl
  • perl different between two dates in days
  • how to calculate number of days between two dates using regex in java
  • perl difference between two dates
  • programming.mesexemples.com+perl-find-the-number-of-days-between-two-dates-or-times
  • number of days between two dates using perl
  • how to get number of days by subtracting two dates in perl

No comments yet.

Leave a Comment