U2 860 then LS 3105 at Gatwick
Edinburgh → London → Málaga
Timetable, London time
07:50U2 860 from Edinburgh at the gate
06:25LS 3105 to Málaga leaves the gate
22 h 35 apart on the timetable, overnight
LS 3105 leaves 22 h 35 after U2 860 arrives on the timetable: more than half a day, so not a connection we count.