You are here

public function LogEntry::formatEndTime in Ultimate Cron 8.2

Format end time.

File

src/Logger/LogEntry.php, line 181

Class

LogEntry
Class for Ultimate Cron log entries.

Namespace

Drupal\ultimate_cron\Logger

Code

public function formatEndTime() {
  return $this->end_time ? \Drupal::service('date.formatter')
    ->format((int) $this->end_time, 'custom', 'Y-m-d H:i:s') : '';
}