U2 862 then U2 861 at Gatwick
Glasgow → London → Edinburgh
Timetable, London time
10:00U2 862 from Glasgow at the gate
08:35U2 861 to Edinburgh leaves the gate
22 h 35 apart on the timetable, overnight
U2 861 leaves 22 h 35 after U2 862 arrives on the timetable: more than half a day, so not a connection we count.