On 5/11/06, Graeme McLaren <[EMAIL PROTECTED]> wrote:
Hi all, I'm trying to get the date & time a file was created on the server, I RTFM and I found: 10 ctime inode change time (NOT creation time!) in seconds since the epoch
It looks as if you've found the correct FM. There are three timestamps (on most Unix-like filesystems, at least), but none of them is the creation time. So, you can't get what you're asking for; sorry. If you really need to know a file's creation time, the second thing to do is to keep that information on file somewhere, probably at the time you create the file. The first thing to do is to decide exactly what you mean by "creating" a file. Does making a copy count? If you replace a file with a backup copy, does it now have the timestamp of the backup? If you replace the hard drive on the server, do all the files have new creation times? If I make a new document based upon a template created in 1996, when was the new document created? If I make a new template based upon that template, does it have a different creation date than if I merely edit the template? If I upload a file to your server, what creation date does it get? Are we talking about the creation of the file, or the creation of the data it contains? Are we talking about the creation of the data, or the publication of the data? What is the creation timestamp actually going to be used for, and will it be useful for that purpose? Be precise, be consistent, show your work, and continue on the reverse side of the paper if necessary. Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>