BA 965 then BA 444 at Heathrow
Hamburg → London → Amsterdam
Timetable, London time
16:35BA 965 from Hamburg at the gate
16:30BA 444 to Amsterdam leaves the gate
23 h 55 apart on the timetable, overnight
BA 444 leaves 23 h 55 after BA 965 arrives on the timetable: more than half a day, so not a connection we count.