file-newer-than-file-p

file-newer-than-file-p is a built-in function in `C source code'.

(file-newer-than-file-p FILE1 FILE2)

Return t if file FILE1 is newer than file FILE2.
If FILE1 does not exist, the answer is nil;
otherwise, if FILE2 does not exist, the answer is t.