in reply to Checking file Mod date

You probably want the stat() command.