Hi,
New to KM in the last couple weeks, and getting better and better. However, there is one issue that I seem unable to solve on my own.
I am using OCR to grab text on the screen, specifically, a Time of the day, such as "9:50 PM" and save it to a variable. I would like to then compare that variable saved time to the Current Time (%ShortTime%) to see if it is < or > X hours ago.
Specific Sequential Example:
- Get "9:50 PM" text from the screen and save to variable GrabbedTime
- If GrabbedTime < CurrentTime-6hours, then do certain things
- If GrabbedTime > CurrentTime-6hours, then do other certain things
Logically, if the three variables (GrabbedTime, CurrentTime, 6hours) were each converted into a Numeric value, then this would be easy math comparison.
Or if there is some other straightforward path here, any help is much appreciated.
tldr; trying to do actions based on how long ago the grabbed time is, can't figure out how to do it
Thank you!