in reply to time the file is put inside the server
I think this should get you the ctime (which is the closest you'll get):
my $filename = 'somescript.pl'; my $ctime = (stat $filename)[10];
If you're trying to find the time for when you're writing a file to a server, something like this can help:
That will pull up localtime info that you can play with to your heart's content. However, I understand that localtime is or will be deprecated.($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localt +ime(time);
Cheers,
Ovid
|
|---|