Lonnie Bowling

How to use current time in a formula

Discussion created by Lonnie Bowling Champion on Dec 18, 2012
Latest reply on Apr 26, 2017 by JinyJP

Hi Everyone,

 

I have two AF attributes, one is start time the other is end time, both are type DateTime.

 

I want to create a simple AF formula that determines if the current system time is between these two values.  If it is, the formula returns true, else it returns false.

 

From what I see, there is not a clean way to get the current time.  I know I could create some PI PE tags to get the time, but I'm hoping there is an easier way that I am not thinking of.  Any ideas, has anyone needed to do time comparisons in AF?  I would think this is fairly common.

 

Thanks,

 

Lonnie

Outcomes