Display number of days passed since last modification

Trying to solve the same problem, and found the solution: (today()-file.mtime).days.round(). Gives the total number of days difference.

I actually use (today()-file.ctime).days.round() + " days (" + file.ctime.relative() +")" for the best of both worlds :slight_smile: (note this is created time, not modified)

1 Like