Syntax
isnewer(string, string)
Description
The isnewer() function returns true if the first named file is newer than the second, otherwise false is returned.
For the example below we’ll check the two files:
-rw-r–r– 1 eccles users 1865 Jul 17 08:59 /home/eccles/.bashrc
-rw-r–r– 1 eccles users 675 Apr 25 2022 /home/eccles/.profile
Example
include("file") println(isnewer("/home/eccles/.bashrc", "/home/eccles/.profile"))) true