U2 852 then U2 865 at Gatwick
Inverness → London → Glasgow
Timetable, London time
13:40U2 852 from Inverness at the gate
12:15U2 865 to Glasgow leaves the gate
22 h 35 apart on the timetable, overnight
U2 865 leaves 22 h 35 after U2 852 arrives on the timetable: more than half a day, so not a connection we count.