I think you mean the st_ctime argument of stat. You should follow your own advise:

st_ctime
Time when file status was last changed (inode data modification). Changed by the chflags(2), chmod(2), chown(2), creat(2), link(2), mkdir(2), mkfifo(2), mknod(2), rename(2), rmdir(2), symlink(2), truncate(2), unlink(2), utimes(2), write(2) and writev(2) system calls.
$ touch a $ perl -MFile::stat -wle'print "".localtime( stat("a")->ctime )' Fri Aug 21 13:31:40 2009 $ sleep 2 $ perl -MFile::stat -wle'print "".localtime( stat("a")->ctime )' Fri Aug 21 13:31:40 2009 $ chmod go= a $ perl -MFile::stat -wle'print "".localtime( stat("a")->ctime )' Fri Aug 21 13:32:25 2009

I don't know what version of UNIX you run

The man page is from FreeBSD 7.2. You can view the man pages for about 100 different systems if you follow the link above, and I'm sure you'll find similar results for all of them.

The example was executed on Debian Linux (etchnhalf)


In reply to Re^3: File creation and last modifiication time by ikegami
in thread File creation and last modifiication time by mecrazycoder

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.