Note that
-M does not work with
time-compatible values. Instead, it returns the age of the file in
days since the script was started. Likewise with the
-A and
-C tests. This is most likely not what you want. The 10th field of a
stat call will provide you with the last modification time of the file in seconds since the epoch (
time-compatible).