Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Finding the absolute creation time of a file

by Sihal (Pilgrim)
on Apr 09, 2003 at 08:35 UTC ( [id://249170]=note: print w/replies, xml ) Need Help??


in reply to Re: Finding the absolute creation time of a file
in thread Finding the absolute creation time of a file

<quote> What your command line gets is the same as the 11th field of Perl stat, which is the inode change time.</quote> Are you sure ? Cause when copying the files using the -p options, it preserves the timestamps, and I retain the same info as my original file, so I'm not sure that what I'm getting with my command is the ctime...
But that's why I'm asking the question, cause I'm confused :)
  • Comment on Re: Re: Finding the absolute creation time of a file

Replies are listed 'Best First'.
Re^3: Finding the absolute creation time of a file
by robartes (Priest) on Apr 09, 2003 at 08:42 UTC
    Are you sure ? Cause when copying the files using the -p options, it preserves the timestamps, and I retain the same info as my original file

    Well, it stands to reason that when you ask to preserve the timestamps, they are preserved :).

    But yes, I'm quite sure - ctime in Unix filesystem is the inode change time, not creation time. Take a look at the man page for the stat system call. Then take a look at this.

    CU
    Robartes-

      yup. ctime is inode "c"hange time .
      Excellent ressource by the way :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://249170]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2025-02-08 22:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (95 votes). Check out past polls.