BA 1443 then BA 492 at Heathrow
Edinburgh → London → Gibraltar
Timetable, London time
12:05BA 1443 from Edinburgh at the gate
08:10BA 492 to Gibraltar leaves the gate
20 h 05 apart on the timetable, overnight
BA 492 leaves 20 h 05 after BA 1443 arrives on the timetable: more than half a day, so not a connection we count.