I have few dates in the format : ' Wed Mar 4 03:11:59 2009 '. I wish to find the difference in days between those dates with current date-time.
I am using DateTime::Forma t::Strptime module at top. The dates I am getting from DB table in integer format. So converted that in normal date format with code :
$ptime= scalar localtime($row[3]);
And this $ptime is having date in the format ' Wed Mar 4 03:11:59 2009 '. I got find the day diff with current day.
How to do that in perl. Please help...
I am using DateTime::Forma t::Strptime module at top. The dates I am getting from DB table in integer format. So converted that in normal date format with code :
$ptime= scalar localtime($row[3]);
And this $ptime is having date in the format ' Wed Mar 4 03:11:59 2009 '. I got find the day diff with current day.
How to do that in perl. Please help...
Comment