Today i was trying to experiment with “os” and function in it
Then i did come up with idea of getting my lattiutde by using only time from my device.
Problem:Idk how to get UTC time
Check out the DevHub article on os | Roblox Creator Documentation
It says that you can use !*t"
on the FormatString to get UTC time, and then type in year, date, etc. on the time parameter of os.
2 Likes
sure i’ll try that in my script.
You can use the !*t
string format on os.date
local utc = os.date("!*t", os.time()) --Gets current time in utc
--Then you can use any of the dictionary keys
1 Like