KL 940 then U2 7839 at Schiphol
Glasgow → Amsterdam → London Stansted
Timetable, Amsterdam time
16:00KL 940 from Glasgow at the gate
15:15U2 7839 to London Stansted leaves the gate
23 h 15 apart on the timetable, overnight
U2 7839 leaves 23 h 15 after KL 940 arrives on the timetable: more than half a day, so not a connection we count.