Pantheon\Terminus\Models\Backup::getDate PHP Method

getDate() public method

Returns the date the backup was completed
public getDate ( ) : string
return string Timestamp completion time or "Pending"
    public function getDate()
    {
        if (!is_null($this->get('finish_time'))) {
            $datetime = $this->get('finish_time');
        } elseif (!is_null($this->get('timestamp'))) {
            $datetime = $this->get('timestamp');
        } else {
            return 'Pending';
        }
        return date($this->getConfig()->get('date_format'), $datetime);
    }