Page 1 of 1

UTC time

Posted: Tuesday 30 April 2019 12:57
by kratax
Hi,
I have a simple question, how to get current time in UTC format within dzvent script? (to be used as a part of URL later on).
Thanks!
Kratax

Re: UTC time

Posted: Tuesday 30 April 2019 14:50
by waaren
kratax wrote: Tuesday 30 April 2019 12:57 How to get current time in UTC format within dzvent script?
local UTC = os.date("!*t")
print("UTC Time ==>> " .. os.date("%A, %d %B %Y (%H:%M:%S)",os.time(UTC)))

for more time examples (in and out dzVents) have a look here