add_single_cron() static public method

Add a new cron job to the DB, that runs only once.
static public add_single_cron ( string $name, mixed $callback, DateTime $run_time, string $description = '' ) : CronJob
$name string The name of the cron job.
$callback mixed The callback function or plugin action for the cron job to execute.
$run_time DateTime The time to execute the cron.
$description string The description of the cron job.
return CronJob
 /**
  * I should really comment all these functions. --matt
  */
 protected function _add_cron($time = 0)
 {
     CronTab::add_single_cron('defensio_queue', 'defensio_queue', time() + $time, _t('Queued comments to scan with defensio, that failed first time', 'defensio'));
 }