AC 1951 then UA 8167 at Toronto Pearson
Quebec → Toronto → San Francisco
Timetable, Toronto time
12:28AC 1951 from Quebec at the gate
12:00UA 8167 to San Francisco leaves the gate
23 h 32 apart on the timetable, overnight
UA 8167 leaves 23 h 32 after AC 1951 arrives on the timetable: more than half a day, so not a connection we count.