src/SQL.php
final public function time() {
		if ($this->dbtype == 'pgsql')
			return $this->query(
				"SELECT EXTRACT('epoch' from CURRENT_TIMESTAMP) AS now"
			)['now'];
		if ($this->dbtype == 'mysql')
			return $this->query(
				"SELECT UNIX_TIMESTAMP() AS now")['now'];
		return $this->query(
			"SELECT strftime('%s', CURRENT_TIMESTAMP) AS now"
		)['now'];
	}
final public function time() {
		if ($this->dbtype == 'pgsql')
			return $this->query(
				"SELECT EXTRACT('epoch' from CURRENT_TIMESTAMP) AS now"
			)['now'];
		if ($this->dbtype == 'mysql')
			return $this->query(
				"SELECT UNIX_TIMESTAMP() AS now")['now'];
		return $this->query(
			"SELECT strftime('%s', CURRENT_TIMESTAMP) AS now"
		)['now'];
	}
final public function time ( ) { if ( $ this -> dbtype == 'pgsql' ) return $ this -> query ( "SELECT EXTRACT('epoch' from CURRENT_TIMESTAMP) AS now" ) [ 'now' ] ; if ( $ this -> dbtype == 'mysql' ) return $ this -> query ( "SELECT UNIX_TIMESTAMP() AS now" ) [ 'now' ] ; return $ this -> query ( "SELECT strftime('%s', CURRENT_TIMESTAMP) AS now" ) [ 'now' ] ; }
Get Unix timestamp from database server.

@return int Unix epoch.
Get Unix timestamp from database server .