FR 819 then FR 634 at Dublin
Edinburgh → Dublin → Cardiff
Timetable, Dublin time
09:00FR 819 from Edinburgh at the gate
07:10FR 634 to Cardiff leaves the gate
22 h 10 apart on the timetable, overnight
FR 634 leaves 22 h 10 after FR 819 arrives on the timetable: more than half a day, so not a connection we count.