Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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?
marioroy MCE 1.830 is completed. I will release it after completing MCE::Shared.
marioroy concurrent Tie::File among many workers is possible via MCE::Shared.
marioroy Ditto for DB_File, BerkeleyDB, etc. ;-)

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2017-08-18 07:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (296 votes). Check out past polls.

    Notices?