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