UA 5895 then AA 1638 at Phoenix
San Diego → Phoenix → Denver
Timetable, Phoenix time
19:43UA 5895 from San Diego at the gate
19:09AA 1638 to Denver leaves the gate
23 h 26 apart on the timetable, overnight
AA 1638 leaves 23 h 26 after UA 5895 arrives on the timetable: more than half a day, so not a connection we count.