FR 4586 then FR 7959 at Barcelona
Porto → Barcelona → Cork
Timetable, Barcelona time
19:45FR 4586 from Porto at the gate
17:30FR 7959 to Cork leaves the gate
21 h 45 apart on the timetable, overnight
FR 7959 leaves 21 h 45 after FR 4586 arrives on the timetable: more than half a day, so not a connection we count.