KL 1788 then U2 7837 at Schiphol
Hannover → Amsterdam → Edinburgh
Timetable, Amsterdam time
11:55KL 1788 from Hannover at the gate
11:40U2 7837 to Edinburgh leaves the gate
23 h 45 apart on the timetable, overnight
U2 7837 leaves 23 h 45 after KL 1788 arrives on the timetable: more than half a day, so not a connection we count.