I saw that someone already recommended Date::Calc, but I'll make another suggestion: Time::Local. It's a much more lightweight module, and it depends on your ultimate needs, but it's a good one to be familiar with. It takes text dates and converts them to Perl time() format.
-----Original Message----- From: hridyesh pant [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 05, 2006 11:25 PM To: beginners@perl.org Subject: Date difference. Hi, i have two date string reading from the log file like below. $date1="Mon Mar 27 02:45:15 2006"; $date2="Wed Apr 5 23:20:46 2006"; $Number_of_Days = $date1-$date2; i want to get number of days between these two dates. Can someone help me. <snip> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>