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