Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Checking if file has been modified in last 7 days using stat

by BazB (Priest)
on Mar 17, 2005 at 22:51 UTC ( #440573=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Checking if file has been modified in last 7 days using stat

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2015-07-02 21:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (45 votes), past polls