AC 7058 then AC 761 at Montréal
Toronto Pearson → Montréal → San Francisco
Timetable, Montréal time
23:56AC 7058 from Toronto Pearson at the gate
18:00AC 761 to San Francisco leaves the gate
18 h 04 apart on the timetable, overnight
AC 761 leaves 18 h 04 after AC 7058 arrives on the timetable: more than half a day, so not a connection we count.