UA 317 then FR 812 at Dublin
Newark → Dublin → Edinburgh
Timetable, Dublin time
09:55UA 317 from Newark at the gate
08:00FR 812 to Edinburgh leaves the gate
22 h 05 apart on the timetable, overnight
FR 812 leaves 22 h 05 after UA 317 arrives on the timetable: more than half a day, so not a connection we count.