AF 5647 then LA 8938 at San Francisco
Los Angeles → San Francisco → New York JFK
Timetable, San Francisco time
23:21AF 5647 from Los Angeles at the gate
22:55LA 8938 to New York JFK leaves the gate
23 h 34 apart on the timetable, overnight
LA 8938 leaves 23 h 34 after AF 5647 arrives on the timetable: more than half a day, so not a connection we count.