Help with timing to real-time

Hello! How are you doing?

I’m not even sure where to start on this script, but I know exactly what I need.

I believe it’d use os time. I need a script that runs a function every day at 9:00AM EST, 12PM EST, and 3PM EST.

Thank you!

It looks like you want to time a script with a certain timestamp. Remember that os.time() is representing seconds after first day of 1970 in UTC time.

You could use a constant offset in hours from UTC to EST, but for future references, remember that daylight saving shifts the clock by one hour and it could be really messy.

On another note, remember that you need a certain time marginal and checking the seconds wouldn’t be favorable, in case the clock somehow skips a second with the loop in mind. That’s also somewhat expensive to check constantly. Every minute that passes would be perfectly fine though.