U2 872 then EC 8627 at Gatwick
Glasgow → London → Berlin
Timetable, London time
17:10U2 872 from Glasgow at the gate
15:00EC 8627 to Berlin leaves the gate
21 h 50 apart on the timetable, overnight
EC 8627 leaves 21 h 50 after U2 872 arrives on the timetable: more than half a day, so not a connection we count.