UA 5631 then AA 901 at San Francisco
Palm Springs → San Francisco → Phoenix
Timetable, San Francisco time
20:00UA 5631 from Palm Springs at the gate
19:05AA 901 to Phoenix leaves the gate
23 h 05 apart on the timetable, overnight
AA 901 leaves 23 h 05 after UA 5631 arrives on the timetable: more than half a day, so not a connection we count.