in reply to Delete Files

Your if statement that's checking the modification times is only being applied to the print statement. The unlink is running against all files -- no conditional there.