Current time to epoch or UTC integer

I am trying to convert current time to millis to pass it, but can’t find find the right syntax.
This is in a tag expression:
toMillis(now())/1000
need it to return a long integer with current second
Any help appreciated.
Thanks

What’s not working with what you have?

1 Like

I stand corrected. For some reason, I couldn’t get it to work last night.
Thank you.

1 Like