FR 3040 then DY 3659 at Barcelona
Prague → Barcelona → Copenhagen
Timetable, Barcelona time
22:40FR 3040 from Prague at the gate
14:45DY 3659 to Copenhagen leaves the gate
16 h 05 apart on the timetable, overnight
DY 3659 leaves 16 h 05 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.