[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> wrote:
: All,
:
: My goal is to get element 9 of stat which is mtime. I am
: getting this with ease, but my end goal is to convert this
: number back into a readable format giving me how old the file
: is.
Are you sure mtime tracks file age? I was under the impression
that that was not what it did on most operating systems.
: So here is a rough draft formula : (time in seconds - last
: MTime ) = seconds old.
:
: Convert seconds old to a human readable time stamp using localtime ();
: Any ideas or is there a better way?
That looks right. Your code is missing a closing quote. You might
commify the result as 1106803146 isn't very human readable.
HTH,
Charles K. Clarkson
--
Mobile Homes Specialist
254 968-8328
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>