Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 5 years ago

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

Log in to vote
0
Answered by
gullet 471 Moderation Voter
5 years ago

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

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. guestnot99 112 — 5y
Ad

Answer this question