As probably most of you may know making a live event requires using the os.time thingy which uses the Unix Epoch time basically i want to convert that giant number of seconds from the Unix Epoch into days,hours,minutes and seconds how would i do that?
You could use time:ToUniversalTime()
1 Like
Ive never used that function could you explain further on how i would use it?
My reply on another topic may be helpful:
Although instead of workspace.DistributedGameTime
you should use event_date_in_seconds-os.time()
and if seconds becomes a negative value, the event has started.
2 Likes
I have a question about what this function does im not that advanced in scripting im still learning so yeah.
function f(text)
return string.format("%02i", text)
end
What does it do?
It formats the text to keep zeros, for example 0 seconds become 00 and 5 become 05.
1 Like
I fixed it i just had to find a tutorial to make it work.