public int getOnlineTime(String playerName) {
		int onlineTime = 0;
		int idLogin = readLatestLoginId(playerName);
		
		try {
			ResultSet rs = _sqLite.query("SELECT (strftime('%s', datetime('now', 'localtime')) "
									   + "- strftime('%s', time_login)) "
									   + "AS online_time "
									   + "FROM login "
									   + "WHERE id = '" + idLogin + "';");
			if (rs.next()) {
				try {
					onlineTime = rs.getInt("online_time");
				} catch (SQLException e) {
					e.printStackTrace();
				}
			}
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return onlineTime;
	}