in reply to Windows document create date
UPDATEmy $file="MY FILE"; my $create_seconds = ( stat($file) )[10]; $create_seconds = $create_seconds - 86400; my $creation = ( ! defined ($create_seconds) ) ? "null" :POSIX::strftime( "%B %d", $modtime_seconds, 0, 0, 0, 0, 0, 0, 0, 0 + ); print "File: $file Created: $creation\n";
before using the above code.use POSIX qw(strftime);
|
|---|