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