I am creating a script which needs to make certain data at certain times.
Currently, you can select that every X seconds it will happen. By working
lastreset + resetsec < time()
I also want to make it possible to select a time.
Such as 12:00am every day it will happen. It needs to be done using unixtime. I would like to be able to somehow to connect it into what I am currently doing. Currently it uses the time() data obviously to work it out.
I know I could do it by working out the seconds in a day then running it like that. But to happen at certain exact times i cannot figure out how.