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