DL 5731 then DL 5831 at Boston
Pittsburgh → Boston → New York LaGuardia
Timetable, Boston time
18:44DL 5731 from Pittsburgh at the gate
18:00DL 5831 to New York LaGuardia leaves the gate
23 h 16 apart on the timetable, overnight
DL 5831 leaves 23 h 16 after DL 5731 arrives on the timetable: more than half a day, so not a connection we count.