"Anthony E. Greene" wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 13-Aug-2002/07:04 -0700, Rick Forrister <[EMAIL PROTECTED]> wrote:
> >cana rich wrote:
> >>     I would like to make a diff in the date of a file from the copy to
> >> the dateday.
> >>
> >> I mean i would like to know how many days has been left since the copy
> >> of the file.
> >
> >The following bit of python code will do the job.  As set up, it
> >displays the days, hours, minutes, and seconds of delta time between any
> >two files.  I believe the one you want is creation time.
> 
> He asked for the age of one file, not the difference in age between two
> files. Until a few days ago, I also thought ctime meant creation time, but
> that is not true.
> 
Possibly my mistake.  As worded "how many days has been left since the
copy of the file." appeared to want the amount of time since the file
was copied from the original.

Point of interest: if a file is copied with no options (ie: "cp a b"),
then the ctime and mtime values will be different, and the atime will be
the same.  But if the file was created using the "cp -p a b" form of the
copy command, then the atime and mtime will be identical between files a
and b, only the ctime will be different and reflect the difference
between a and b.

rickf

-- 
If you are successfull they'll beat a path to your doorstep ...
     Picket signs firmly in hand!



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to