U2 860 then BA 2784 at Gatwick
Edinburgh → London → Larnaca
Timetable, London time
08:55U2 860 from Edinburgh at the gate
08:30BA 2784 to Larnaca leaves the gate
23 h 35 apart on the timetable, overnight
BA 2784 leaves 23 h 35 after U2 860 arrives on the timetable: more than half a day, so not a connection we count.