BA 979 then BA 410 at Heathrow
Berlin → London → Valencia
Timetable, London time
15:10BA 979 from Berlin at the gate
15:00BA 410 to Valencia leaves the gate
23 h 50 apart on the timetable, overnight
BA 410 leaves 23 h 50 after BA 979 arrives on the timetable: more than half a day, so not a connection we count.