in reply to Checking if file has been modified in last 7 days using stat [9]
I'm not going to give you the code, but the method should be something like:
- Get current time since epoch (hint: time())
- Get mtime of file in question, since epoch
- Check if current time minus mtime is less or more than the number of seconds in 7 days.
If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.
|
---|
In Section
Seekers of Perl Wisdom