EC 8062 then U2 863 at Gatwick
Barcelona → London → Glasgow
Timetable, London time
08:55EC 8062 from Barcelona at the gate
07:05U2 863 to Glasgow leaves the gate
22 h 10 apart on the timetable, overnight
U2 863 leaves 22 h 10 after EC 8062 arrives on the timetable: more than half a day, so not a connection we count.