So I’ve been checking out tick(), and they essentially seem to be the same thing. (Gets the time it’s been from January 1st 1970 in seconds.) Other than the fact that os.time is slightly “customizable”, is there any difference between them? And what makes them different?
Tick gets millisecond and os.time gets seconds.
Also good to add on that tick uses your local timezone whereas os.time uses UTC time (I think)
1 Like
Also, tick uses local time. From what I’ve heard, tick should no longer be used. For a precise benchmarking purposes, use os.clock()
. For in-game time differences, you should just use time()
(not os.time). os.time()
is good for things like DataStores where you want a more consistent UTC timer such as for bans or daily bonuses etc etc etc
1 Like