KL 1786 then U2 7835 at Schiphol
Hannover → Amsterdam → Edinburgh
Timetable, Amsterdam time
07:15KL 1786 from Hannover at the gate
07:00U2 7835 to Edinburgh leaves the gate
23 h 45 apart on the timetable, overnight
U2 7835 leaves 23 h 45 after KL 1786 arrives on the timetable: more than half a day, so not a connection we count.