function tripal_jobs_get_end_time

2.x tripal_core.DEPRECATED.api.inc tripal_jobs_get_end_time($job)
3.x tripal_core.DEPRECATED.inc tripal_jobs_get_end_time($job)
1.x tripal_core_jobs.api.inc tripal_jobs_get_end_time($job)

Returns the end time for a given job

Parameters

$job: An object describing the job

Return value

The end time of the job if it was already run and empty otherwise

Related topics

2 calls to tripal_jobs_get_end_time()
tripal_core_preprocess_tripal_core_job_view in tripal_core/includes/jobs.inc
Registers variables for the tripal_core_job_view themeing function
tripal_jobs_report in tripal_core/includes/jobs.inc
Returns the Tripal Job Report

File

tripal_core/api/tripal_core_jobs.api.inc, line 167
Contains functions related to the Tripal Jobs API

Code

function tripal_jobs_get_end_time($job) {

  if ($job->end_time > 0) {
    $end = format_date($job->end_time);
  }
  else {
    $end = '';
  }

  return $end;
}