U2 803 then U2 867 at Gatwick
Edinburgh → London → Glasgow
Timetable, London time
15:15U2 803 from Edinburgh at the gate
14:10U2 867 to Glasgow leaves the gate
22 h 55 apart on the timetable, overnight
U2 867 leaves 22 h 55 after U2 803 arrives on the timetable: more than half a day, so not a connection we count.