FR 6266 then U2 2324 at Barcelona
Edinburgh → Barcelona → London Luton
Timetable, Barcelona time
11:55FR 6266 from Edinburgh at the gate
10:25U2 2324 to London Luton leaves the gate
22 h 30 apart on the timetable, overnight
U2 2324 leaves 22 h 30 after FR 6266 arrives on the timetable: more than half a day, so not a connection we count.