BA 965 then BA 784 at Heathrow
Hamburg → London → Stockholm
Timetable, London time
21:30BA 965 from Hamburg at the gate
19:55BA 784 to Stockholm leaves the gate
22 h 25 apart on the timetable, overnight
BA 784 leaves 22 h 25 after BA 965 arrives on the timetable: more than half a day, so not a connection we count.