U2 7838 then U2 3174 at Schiphol
Edinburgh → Amsterdam → Glasgow
Timetable, Amsterdam time
17:20U2 7838 from Edinburgh at the gate
14:15U2 3174 to Glasgow leaves the gate
20 h 55 apart on the timetable, overnight
U2 3174 leaves 20 h 55 after U2 7838 arrives on the timetable: more than half a day, so not a connection we count.