Hi,
Within a Cicode task (Citect 2016) I'm reading a date/time string from SQL which indicates when a backup job last ran (e.g. "2020-02-20 13:15:01") and need to determine if this date/time occurred within the last 15 minutes. I'm then raising an alarm if it didn't.
The solution (in Cicode) will no doubt be some combination of TimeCurrent(), DateSub() and TimeToStr(), but after a few attempts I'm not getting very far!
Could someone please provide some example Cicode of how best to do this comparison.
Thanks
Ash