I'm wondering how would I get a file's date (as in, knowing how many hours old it is) and being able to do a comparison and delete it if true. Say, a file in my server should last only 24 hours (it's for a test I'm doing), if it gets older, it gets deleted. So, how would I go into knowing how many hours old the file is, and to know when it's greater than 24?
Thanks in advance