Get Interval between current time and specific hour

Is there a way to get the interval between current time and a specific hour?
For example: Current time 10am, specific hour 7am.
I need to know how to store that interval into a Variable.

Hey emendoza, I think I may have a solution that will work for you. I have an app with a date time picker that allows the operator to select the “current time”, but you could also use the app info current time to do that. Then, I have a button with a trigger that stores the desired “static time” to a static time variable, and subtracts it from the selected current time. A screenshot of my trigger is below:

Let me know if you have any questions.

Forgot to attach what the output looks like, so here it is.


This is very helpful

1 Like