DY 5510 then SK 1642 at Copenhagen
Barcelona → Copenhagen → Riga
Timetable, Copenhagen time
19:15DY 5510 from Barcelona at the gate
12:55SK 1642 to Riga leaves the gate
17 h 40 apart on the timetable, overnight
SK 1642 leaves 17 h 40 after DY 5510 arrives on the timetable: more than half a day, so not a connection we count.