Scalr_SchedulerTask::isExecutedRecently PHP Method

isExecutedRecently() public method

Checks whether this task was executed recently
public isExecutedRecently ( ) : boolean
return boolean Returns TRUE if either the task was executed less than 30 seconds ago or it has never been executed.
    public function isExecutedRecently()
    {
        //Last start time less than 30 seconds
        return $this->lastStartTime && time() - strtotime($this->lastStartTime) < 30;
    }