UA 1791 then AV 2354 at San Francisco
San Diego → San Francisco → Denver
Timetable, San Francisco time
11:25UA 1791 from San Diego at the gatealso AZ 4448, VA 8583
05:00AV 2354 to Denver leaves the gate
17 h 35 apart on the timetable, overnight
AV 2354 leaves 17 h 35 after UA 1791 arrives on the timetable: more than half a day, so not a connection we count.