Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is it possible to return local real time?

I'm guessing the answer is a simple "no."

I want local real time. os.time() and tick() don't seem to use the user's time zone, unless I'm doing something wrong. For my purposes, its either get the local time or have the player input their current time the first time they join the game. Also, is it possible to tell if the user is currently on daylight savings time?

4 comments

0

It is via tick; when used in a local script, it returns the player's time. (At least, if memory doesn't fail)

0

Perhaps its an error on my part, but whenever I change my time zone, tick does not appear to differ

0

Tick Returns the number of seconds that have elapsed since the UNIX epoch (January 1st, 1970), on your computer.

0

you need a datastore though, you must set the time of the time zone exactly how it is and make sure it counts even when you are afk

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.