Page 1 of 1

How to convert global variable time to seconds

Posted: 29 Mar 2020 15:04
by icefox56
Global variables stores time as 1585491900000 2020-03-29 20:33:00:000

How can I convert this into seconds in automagic and use that value in 'Action: sleep'?

Re: How to convert global variable time to seconds

Posted: 29 Mar 2020 15:26
by anuraag
getDurationString(global_variable - triggertime)

Re: How to convert global variable time to seconds

Posted: 29 Mar 2020 15:39
by icefox56
It works, thanks.