AS 227 then AV 2354 at San Francisco
New York JFK → San Francisco → Denver
Timetable, San Francisco time
13:04AS 227 from New York JFK at the gate
05:00AV 2354 to Denver leaves the gate
15 h 56 apart on the timetable, overnight
AV 2354 leaves 15 h 56 after AS 227 arrives on the timetable: more than half a day, so not a connection we count.