def atlasdb_get_old_peers( now, con=None, path=None ):
    """
    Get peers older than now - PEER_LIFETIME
    """
    with AtlasDBOpen(con=con, path=path) as dbcon:

        if now is None:
            now = time.time()

        expire = now - atlas_peer_max_age()
        sql = "SELECT * FROM peers WHERE discovery_time < ?";
        args = (expire,)

        cur = dbcon.cursor()
        res = atlasdb_query_execute( cur, sql, args )

        rows = []
        for row in res:
            tmp = {}
            tmp.update(row)
            rows.append(tmp)

    return rows
Get peers older than now - PEER_LIFETIME