I'm trying to determine if a file is over 10 minutes old using TimeDiff:
timenow = YmdHms()
filetime = FileTimeYmdHms(filename)
fileage = TimeDiff(timenow,filetime)
If fileage < 0000:00:00:00:10:00
do stuff
EndIf
The If statement evaluates true even if the file is older. I added a message statement for troubleshooting and it said fileage was 0000:00:00:00:12:17 yet Debug said "If do true" and the script did the stuff it should have if the file were less that 10 minutes old.
Thoughts or advice?
Thanks as always.