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

How do I make a real time timer that lasts over an entire week?

I'm developing a game and planning on an event occurring for a given holiday. Is here a function where you can check the current date and time and see whether or not it passed the date of the holiday?

For example, let's say that I set it up so I gave the date in days month year format of Christmas and it would return a boolean statement if christmas already happened. Thank you.

1 answer

Yes, check out os.date and os.time, here's a relevant PIL chapter.

1 comment

0

Additional question, how do I do it so I can check if it is in a given window of time? Taking account of duration.

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