BA 284 then BA 1448 at Heathrow
San Francisco → London → Edinburgh
Timetable, London time
11:50BA 284 from San Francisco at the gate
11:45BA 1448 to Edinburgh leaves the gate
23 h 55 apart on the timetable, overnight
BA 1448 leaves 23 h 55 after BA 284 arrives on the timetable: more than half a day, so not a connection we count.