Speedfreak has asked for the wisdom of the Perl Monks concerning the following question:
What I'm looking to do it modify the modification time so that the minutes are set to 00. This is because the mode time is used for tracking "freshness" of the files. I've looked at alternatives - this is the only way to achieve what I want.
Say a file is downloaded at 13:34, I want to change the modification time to 13:00.
I've seen a couple of shell scripts which "touch" files to set dates and times. Is this possible in Perl? I'm using Linux as the platform so I'm guessing its possible somehow.
- Speedy
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Modifying file access times on Unix through Perl.
by btrott (Parson) on Mar 21, 2000 at 22:09 UTC | |
|
Re: Modifying file access times on Unix through Perl.
by jerji (Novice) on Mar 22, 2000 at 01:28 UTC |