AC 742 then AC 1914 at Toronto Pearson
San Francisco → Toronto → Ottawa
Timetable, Toronto time
21:49AC 742 from San Francisco at the gate
16:10AC 1914 to Ottawa leaves the gate
18 h 21 apart on the timetable, overnight
AC 1914 leaves 18 h 21 after AC 742 arrives on the timetable: more than half a day, so not a connection we count.