BA 865 then BA 1442 at Heathrow
Prague → London → Edinburgh
Timetable, London time
09:05BA 865 from Prague at the gate
08:55BA 1442 to Edinburgh leaves the gate
23 h 50 apart on the timetable, overnight
BA 1442 leaves 23 h 50 after BA 865 arrives on the timetable: more than half a day, so not a connection we count.