BA 491 then BA 1454 at Heathrow
Gibraltar → London → Edinburgh
Timetable, London time
16:05BA 491 from Gibraltar at the gate
16:00BA 1454 to Edinburgh leaves the gate
23 h 55 apart on the timetable, overnight
BA 1454 leaves 23 h 55 after BA 491 arrives on the timetable: more than half a day, so not a connection we count.