BA 819 then BA 490 at Heathrow
Copenhagen → London → Gibraltar
Timetable, London time
08:10BA 819 from Copenhagen at the gate
06:45BA 490 to Gibraltar leaves the gate
22 h 35 apart on the timetable, overnight
BA 490 leaves 22 h 35 after BA 819 arrives on the timetable: more than half a day, so not a connection we count.