In case anyone comes here after 1.9.2, there is a new syntax
file.mtime >= today() - "7d"
date(file.mtime) >= date(dateModify(date(now), "-7d"))