in reply to More on Stat() vs -A
and -A gives the accesstime in days from the start of the script! to convert it back to a accesstime like the one from -A you have to $^T - (-A $file) * 24 * 60 * 60;$t2 = (stat( $file ))[8];
$file = "\/etc\/hosts"; $t1 = -A $file; $t2 = (stat( $file ))[8]; $t3 = $^T - (-A $file) * 24 * 60 * 60; print $t1, $/; print $t2, $/; print $t3, $/;
|
|---|