Hi all,
I wrote a script that changes the contents of a file. However, I would like to retain the timestamp for that file.
I have tried the stat() and utime. Assigning $mtime = stat ("$ARGV")[8]and attempting to change $mtime by doing
utime $atime, $mtime, $ARGV; seems to reset the timestamp to the epoch (1969).Thanks
Xlim
Edited: ~Fri Oct 18 21:32:21 2002 (GMT) by footpad: Added <code> and other HTML formatting tags, per Consideration
In reply to retaining TIMESTAMPS by xlim
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |