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