U2 810 then U2 8635 at Gatwick
Edinburgh → London → Hamburg
Timetable, London time
16:35U2 810 from Edinburgh at the gate
13:00U2 8635 to Hamburg leaves the gate
20 h 25 apart on the timetable, overnight
U2 8635 leaves 20 h 25 after U2 810 arrives on the timetable: more than half a day, so not a connection we count.