Calculate date difference between Last modified date of a file and NOW using shell script
lastUpdate="$(stat -c %Y myLogFile.log)"
now="$(date +%s)"
let diff="${now}-${lastUpdate}"
compare the two outputs to get the number of seconds between now and the modified date
stat -c %Y file vs date +%s