U2 7838 then U2 8688 at Schiphol
Edinburgh → Amsterdam → London Gatwick
Timetable, Amsterdam time
11:15U2 7838 from Edinburgh at the gate
10:40U2 8688 to London Gatwick leaves the gate
23 h 25 apart on the timetable, overnight
U2 8688 leaves 23 h 25 after U2 7838 arrives on the timetable: more than half a day, so not a connection we count.