inductiveautomation.com/supp … me_now.htm
How do I set variable equal to now() from event handler script?
How do I call any function from event handler script.
inductiveautomation.com/supp … me_now.htm
How do I set variable equal to now() from event handler script?
How do I call any function from event handler script.
The now() function only exists in expression bindings. Expression bindings are separate from scripting functions and cannot be used in scripts. If you want the current time do the following:from java.util import Date
currentTime = Date()
Thank you.