EC 8064 then U2 865 at Gatwick
Barcelona → London → Glasgow
Timetable, London time
14:25EC 8064 from Barcelona at the gate
10:15U2 865 to Glasgow leaves the gate
19 h 50 apart on the timetable, overnight
U2 865 leaves 19 h 50 after EC 8064 arrives on the timetable: more than half a day, so not a connection we count.