U2 872 then VY 7619 at Gatwick
Glasgow → London → Barcelona
Timetable, London time
17:10U2 872 from Glasgow at the gate
16:50VY 7619 to Barcelona leaves the gate
23 h 40 apart on the timetable, overnight
VY 7619 leaves 23 h 40 after U2 872 arrives on the timetable: more than half a day, so not a connection we count.