BA 471 then BA 45 at Heathrow
Palma de Mallorca → London → Cape Town
Timetable, London time
22:10BA 471 from Palma de Mallorca at the gate
20:40BA 45 to Cape Town leaves the gate
22 h 30 apart on the timetable, overnight
BA 45 leaves 22 h 30 after BA 471 arrives on the timetable: more than half a day, so not a connection we count.