BA 985 then BA 970 at Heathrow
Berlin → London → Hamburg
Timetable, London time
18:30BA 985 from Berlin at the gate
18:25BA 970 to Hamburg leaves the gate
23 h 55 apart on the timetable, overnight
BA 970 leaves 23 h 55 after BA 985 arrives on the timetable: more than half a day, so not a connection we count.