[Sunhelp] EXACT!!! creation time of files
Wolfgang Engelien
wolfgang at hanazono.med.cornell.edu
Mon Aug 30 12:35:40 CDT 1999
Thank you very much. Unfortunatly this did not
answer my question (as I meant it). So, let me
rephrase my question:
Is there a way to determin the creation time of a file
in the SECOND range in Solaris/Irix? That means with
the precesion of ca. one second.
I want to be able to say for example:
File X was created in December 6th 1998 14:05:45
or
file X was created 882988997 seconds after January 1st 1970.
But thanks anyway,
Wolfgang
At 01:46 AM 8/28/99 -0500, you wrote:
>On Fri, Aug 27, 1999 at 12:17:05PM -0400, Wolfgang Engelien wrote:
>
>| is there a way to determin the creation time of a file
>| in the second range in Solaris/Irix?
>
>Each file has a ctime, mtime and atime.
>
>mtime = time of last modification of the file
>atime = time of last access
>ctime = time that the inode of the file was last altered.
>
>Normally the ctime is called the `creation time' and if it really were
>so, then this would be what you wanted. But if you ever use `touch'
>on a file or use the utime() call, you reset the ctime to the current
>system time so you can't rely on it to be the `creation time'.
>
>That being said, you can view the ctime of a file on any Un*x system
>with a `ls -lc { file name }'. For more details, `man ls'.
>
>--
>Doug McLaren, dougmc at frenzy.com
>
>_______________________________________________
>SunHELP maillist - SunHELP at sunhelp.org
>http://www.sunhelp.org/mailman/listinfo/sunhelp
>
#####
# Wolfgang Engelien
# Tel.: (212) 746 3724
# Fax.: (212) 746 5818
# email: wolfgang at hanazono.med.cornell.edu
#####
More information about the SunHELP
mailing list