I believe the -C option relative to a filename represents the ctime of the inode. Don't ask me what this means, I'm just reading about it in a book (Perl Cookbook). I've read far enough to get to the following line: "The ctime is
not the creation time; there is
NO way under standard UNIX to find a file's creation time." Bummer since that is what I think you're trying to do. I'm not saying that it can't be done from personal experience, I'm just stating what was in the book! Below is a brief explanation as stated in the Perl Cookbook.
An inode (index-node) is an entry in the index that are relative to a set of data blocks. The inode is a flat file and is addressed by number. An inode acts as a pointer to a specific set of data blocks, but also contains information on the type of things it represents (directory, plain file, etc).
The inode contains many fields, but of relevance to this post: atime, ctime, and mtime.
atime - updated every time pointer to the file's data blocks is followed and the file's data is read
ctime - updated each time the file's inode changes
mtime - updated each time the file's data changes
You might also want to read up about File::Stat, which provides an interface to all of these values. It's a very effective method of obtaining information about a certain file.
HTH, Eric
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.