U2 8822 then U2 804 at Gatwick
Krakow → London → Edinburgh
Timetable, London time
20:20U2 8822 from Krakow at the gate
16:00U2 804 to Edinburgh leaves the gate
19 h 40 apart on the timetable, overnight
U2 804 leaves 19 h 40 after U2 8822 arrives on the timetable: more than half a day, so not a connection we count.