Once i was trying to get the date when the file is written in perl. I found the following solutions all of them are giving the complete timestamp of the file but i needed only the date.
You can get the timestamp of a file in following ways in perl :
First Method :
$write_secs = (stat($file))[9];
print “file $file updated at “, scalar(localtime($file)), “\n”;
Second Method :
Using standard module File::stat and Time::locatime(bundled with all 5.x perl installations)
use File::stat;
use Time::localtime;
$date_string = ctime(stat($file)->mtime);
print “file $file updated at $date_string\n”;
To get only the data of file I used this solution :
$tm = localtime(stat($path)->mtime);
#get only the data from time object
$date_string = $tm->mday.”-”.(($tm->mon)+1).”-”.(($tm->year)+1900);
print “file $file updated at $date_string\n”;
Buy:Accutane.Actos.Synthroid.100% Pure Okinawan Coral Calcium.Zyban.Prednisolone.Retin-A.Valtrex.Petcam (Metacam) Oral Suspension.Nexium.Mega Hoodia.Human Growth Hormone.Arimidex.Lumigan.Prevacid.Zovirax….
Buy:Zocor.Female Cialis.Acomplia.Lipothin.Nymphomax.Wellbutrin SR.Seroquel.Benicar.Cozaar.SleepWell.Advair.Ventolin.Lasix.Buspar.Aricept.Prozac.Amoxicillin.Lipitor.Female Pink Viagra.Zetia….
Buy:100% Pure Okinawan Coral Calcium.Valtrex.Actos.Zovirax.Prevacid.Petcam (Metacam) Oral Suspension.Zyban.Nexium.Mega Hoodia.Human Growth Hormone.Synthroid.Prednisolone.Accutane.Retin-A.Arimidex.Lumigan….