FR 809 then FR 5151 at Dublin
Edinburgh → Dublin → Glasgow
Timetable, Dublin time
20:50FR 809 from Edinburgh at the gate
12:30FR 5151 to Glasgow leaves the gate
15 h 40 apart on the timetable, overnight
FR 5151 leaves 15 h 40 after FR 809 arrives on the timetable: more than half a day, so not a connection we count.