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;
}