I update a file once per day at 8pm
I only update the file on weekdays
I want to check if the file update worked the night before.
At 8am the following day the file will be 12 hours old
On Monday morning the file will be > 2 days old but this is expected.
in my item I use vfs.file.time(<myfilename>,modify)
In my trigger I could have (pseudocode)
(is today monday and is file age > 60hours) or (is today >= tues and today <= friday and is file age > 12h)
which i think looks like this
( dayofweek()=1 and fuzzytime(<myfilename>,60h)=0 ) or ( dayofweek()>=2 and dayofweek() <=5 and fuzzytime(<myfilename>,12h)=0 )
but is there a more elegant way of doing a file age check that accounts for weekends?
Thanks in anticipation