FR 3040 then VY 6020 at Barcelona
Prague → Barcelona → Rome
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
21:05VY 6020 to Rome leaves the gate
23 h 50 apart on the timetable, overnight
VY 6020 leaves 23 h 50 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.