BA 2655 then BA 2820 at Gatwick
Alicante → London → Rabat
Timetable, London time
13:35BA 2655 from Alicante at the gate
12:45BA 2820 to Rabat leaves the gate
23 h 10 apart on the timetable, overnight
BA 2820 leaves 23 h 10 after BA 2655 arrives on the timetable: more than half a day, so not a connection we count.