EC 7154 then FR 6267 at Barcelona
Milan → Barcelona → Edinburgh
Timetable, Barcelona time
23:15EC 7154 from Milan at the gate
21:15FR 6267 to Edinburgh leaves the gate
22 h apart on the timetable, overnight
FR 6267 leaves 22 h after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.