Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

? Confused with os.time() convertion

Asked by 4 years ago

Is it possible to convert os.time() to a specific time zone for example : Central Daylight Time? (GMT-5)

1 answer

Log in to vote
0
Answered by 4 years ago

You are able to get the UTC time with this

local time = os.date("!*t",os.time()) --UTC Time

You can add time to this to sync it with different timezones.

Ad

Answer this question