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