Re: File time and date questions

2000-05-27 Thread Soren Andersen
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

Re: File time and date questions

2000-05-26 Thread Ian D. Stewart
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";

Re: File time and date questions

2000-05-26 Thread Philip Newton
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

Re: File time and date questions

2000-05-26 Thread Eric Stephenson
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] --

Re: File time and date questions

2000-05-26 Thread Philip Newton
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