U2 862 then U2 807 at Gatwick
Glasgow → London → Edinburgh
Timetable, London time
11:15U2 862 from Glasgow at the gate
09:45U2 807 to Edinburgh leaves the gate
22 h 30 apart on the timetable, overnight
U2 807 leaves 22 h 30 after U2 862 arrives on the timetable: more than half a day, so not a connection we count.