AA 3951 then UA 6030 at Phoenix
Tucson → Phoenix → San Diego
Timetable, Phoenix time
17:01AA 3951 from Tucson at the gate
16:30UA 6030 to San Diego leaves the gate
23 h 29 apart on the timetable, overnight
UA 6030 leaves 23 h 29 after AA 3951 arrives on the timetable: more than half a day, so not a connection we count.