DL 5223 then DL 747 at JFK
Buffalo → New York → Los Angeles
Timetable, New York time
12:48DL 5223 from Buffalo at the gate
11:00DL 747 to Los Angeles leaves the gate
22 h 12 apart on the timetable, overnight
DL 747 leaves 22 h 12 after DL 5223 arrives on the timetable: more than half a day, so not a connection we count.