On 05/26/00, ""Eric Stephenson" <[EMAIL PROTECTED]>" wrote:
> .. get the file date and time but for some reason am not getting what I am expecting.
> I am running this on NT 4.0
I am not convinced beyond all doubt that there isn't something weird going
on with perl dates on WinNT using certain
Eric Stephenson wrote:
>
> Hi,
>
> I am using the following to try and get the file date and time but for some reason
>am not getting what I am expecting.
>
> Here is the snippet of code:
>
> $file = "install.log";
> $time = (stat("$file"))[10];
> $ltime = local($time);
>
> print "$ltime\n";
Eric Stephenson wrote:
> $file = "install.log";
> $time = (stat("$file"))[10];
> $ltime = localtime($time);
>
> print "$ltime\n";
And you get a value in 1969?
Do you also get a message "Use of unitialized value at ... line ..."? You
*are* running with -w and 'use strict', aren't you?
What's
Philip,
Thanks I missed that. Here is the correct snippet:
$file = "install.log";
$time = (stat("$file"))[10];
$ltime = localtime($time);
print "$ltime\n";
-
Eric Stephenson
Web Developer
ASI
(215) 752-4200
mailto:[EMAIL PROTECTED]
--
Eric Stephenson wrote:
> Here is the snippet of code:
>
> $file = "install.log";
> $time = (stat("$file"))[10];
> $ltime = local($time);
>
> print "$ltime\n";
>
> And what I am getting out:
>
> Wed Dec 31 19:00:00 1969
This is not your code.
Please post the code you are using, using copy-a