Charles and the Perl beginners, thx for the response. But how do I ,from below, convert seconds old to a date? >From my docs Mtime shows me a timestamp of when the file was last changed.
Derek B. Smith OhioHealth IT UNIX / TSM / EDM Teams "Charles K. Clarkson" <[EMAIL PROTECTED] To .net> <beginners@perl.org> cc 05/18/2005 12:26 AM Subject RE: timestamp conversion [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> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>