FR 6274 then FR 8231 at Barcelona
Edinburgh → Barcelona → London Stansted
Timetable, Barcelona time
21:00FR 6274 from Edinburgh at the gate
14:00FR 8231 to London Stansted leaves the gate
17 h apart on the timetable, overnight
FR 8231 leaves 17 h after FR 6274 arrives on the timetable: more than half a day, so not a connection we count.