U2 868 then U2 8059 at Gatwick
Glasgow → London → Barcelona
Timetable, London time
18:25U2 868 from Glasgow at the gate
17:55U2 8059 to Barcelona leaves the gate
23 h 30 apart on the timetable, overnight
U2 8059 leaves 23 h 30 after U2 868 arrives on the timetable: more than half a day, so not a connection we count.