BA 1465 then BA 540 at Heathrow
Edinburgh → London → Bologna
Timetable, London time
09:15BA 1465 from Edinburgh at the gate
08:25BA 540 to Bologna leaves the gate
23 h 10 apart on the timetable, overnight
BA 540 leaves 23 h 10 after BA 1465 arrives on the timetable: more than half a day, so not a connection we count.