You can wrap the differences in GNU and BSD status with some mathematical and basic readable BASH API:
since_last_modified() { local modified local now=$(date +%s) local period=$2 stat -f %m $1 > /dev/null 2>&1 && modified=$(stat -f %m $1)
The main use of seconds since the last modification:
since_last_modified uname.txt
or minutes stored in a variable
minutes_since=$(since_last_modified uname.txt minutes)
source share