DL 2112 then AA 2161 at JFK
San Francisco → New York → Miami
Timetable, New York time
06:00DL 2112 from San Francisco at the gate
05:55AA 2161 to Miami leaves the gate
23 h 55 apart on the timetable, overnight
AA 2161 leaves 23 h 55 after DL 2112 arrives on the timetable: more than half a day, so not a connection we count.