U2 860 then U2 863 at Gatwick
Edinburgh → London → Glasgow
Timetable, London time
08:55U2 860 from Edinburgh at the gate
06:20U2 863 to Glasgow leaves the gate
21 h 25 apart on the timetable, overnight
U2 863 leaves 21 h 25 after U2 860 arrives on the timetable: more than half a day, so not a connection we count.