BA 779 then BA 664 at Heathrow
Stockholm → London → Larnaca
Timetable, London time
17:40BA 779 from Stockholm at the gate
17:35BA 664 to Larnaca leaves the gate
23 h 55 apart on the timetable, overnight
BA 664 leaves 23 h 55 after BA 779 arrives on the timetable: more than half a day, so not a connection we count.