AA 4980 then AA 1829 at Phoenix
Tucson → Phoenix → San Diego
Timetable, Phoenix time
20:01AA 4980 from Tucson at the gate
20:00AA 1829 to San Diego leaves the gate
23 h 59 apart on the timetable, overnight
AA 1829 leaves 23 h 59 after AA 4980 arrives on the timetable: more than half a day, so not a connection we count.