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