U2 872 then U2 8709 at Gatwick
Glasgow → London → Marrakesh
Timetable, London time
14:15U2 872 from Glasgow at the gate
13:45U2 8709 to Marrakesh leaves the gate
23 h 30 apart on the timetable, overnight
U2 8709 leaves 23 h 30 after U2 872 arrives on the timetable: more than half a day, so not a connection we count.