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