BA 965 then BA 792 at Heathrow
Hamburg → London → Göteborg
Timetable, London time
15:45BA 965 from Hamburg at the gate
15:25BA 792 to Göteborg leaves the gate
23 h 40 apart on the timetable, overnight
BA 792 leaves 23 h 40 after BA 965 arrives on the timetable: more than half a day, so not a connection we count.