FR 3040 then EC 7155 at Barcelona
Prague → Barcelona → Milan
Timetable, Barcelona time
19:10FR 3040 from Prague at the gate
18:40EC 7155 to Milan leaves the gate
23 h 30 apart on the timetable, overnight
EC 7155 leaves 23 h 30 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.