HM\BackUpWordPress\Backup_Status::get_start_time PHP Method

get_start_time() public method

Get the time that the current running backup was started
public get_start_time ( ) : integer
return integer $timestamp
    public function get_start_time()
    {
        if (!file_exists($this->get_status_filepath())) {
            return 0;
        }
        $status = json_decode(file_get_contents($this->get_status_filepath()));
        if (!empty($status->started) && (int) (string) $status->started === $status->started) {
            return $status->started;
        }
        return time();
    }