Time and Date: Virtual Cron Giorgos (contact me)
This class can be used to check whether it is time to run a task that must run from time to time.
It creates a control file to keep track the last time the task was scheduled.
The class can check the control file last modification time to determined whether it passed a given period of time since the last time the task was run.
If the given interval time has passed since the last run, the class recreates the control file and returns true to inform the application that is time to run the task again.