EC 8062 then U2 8419 at Gatwick
Barcelona → London → Nice
Timetable, London time
08:55EC 8062 from Barcelona at the gate
08:40U2 8419 to Nice leaves the gate
23 h 45 apart on the timetable, overnight
U2 8419 leaves 23 h 45 after EC 8062 arrives on the timetable: more than half a day, so not a connection we count.