Here you can get the file's last modified time in seconds.
fs.stat("filename.json", function(err, stats){
let seconds = (new Date().getTime() - stats.mtime) / 1000;
console.log(`File modified ${seconds} ago`);
});
Outputs something like "File modified 300.9 seconds ago"