UA 5980 then UA 1195 at LAX
Phoenix Sky Harbor → Los Angeles → San Francisco
Timetable, Los Angeles time
20:18UA 5980 from Phoenix Sky Harbor at the gate
19:45UA 1195 to San Francisco leaves the gate
23 h 27 apart on the timetable, overnight
UA 1195 leaves 23 h 27 after UA 5980 arrives on the timetable: more than half a day, so not a connection we count.