Date and time stamps of files

Ollivier Robert roberto at keltia.freenix.fr
Sat Sep 10 17:11:26 CDT 2005


According to Matt Mackall:
> Don't mind me, I've been confusing mtime and ctime for 20 years.

And don't forget ctime is _not_ creation time...

         time_t    st_ctime;             /* time of last file status change
*/
         long      st_ctimensec;         /* nsec of last file status change
*/

It records the last change to the inode (i.e. if you change permissions,
ctime change).
-- 
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto at keltia.freenix.fr
Darwin snuadh.freenix.org Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005


More information about the Mercurial mailing list