U2 810 then U2 8317 at Gatwick
Edinburgh → London → Pisa
Timetable, London time
16:35U2 810 from Edinburgh at the gate
15:20U2 8317 to Pisa leaves the gate
22 h 45 apart on the timetable, overnight
U2 8317 leaves 22 h 45 after U2 810 arrives on the timetable: more than half a day, so not a connection we count.