AV 2351 then AA 16 at San Francisco
Denver → San Francisco → New York JFK
Timetable, San Francisco time
19:11AV 2351 from Denver at the gate
12:25AA 16 to New York JFK leaves the gatealso QF 3077, GF 4145, BA 5605, G3 6289
17 h 14 apart on the timetable, overnight
AA 16 leaves 17 h 14 after AV 2351 arrives on the timetable: more than half a day, so not a connection we count.